mirror of https://github.com/mirror/busybox.git
ftpd: fix thinko: set_nport takes port in network order
parent
fbf5846ce1
commit
074c9036b2
|
@ -522,7 +522,7 @@ handle_port(void)
|
||||||
G.port_addr = xdotted2sockaddr(raw, port);
|
G.port_addr = xdotted2sockaddr(raw, port);
|
||||||
#else
|
#else
|
||||||
G.port_addr = get_peer_lsa(STDIN_FILENO);
|
G.port_addr = get_peer_lsa(STDIN_FILENO);
|
||||||
set_nport(G.port_addr, port);
|
set_nport(G.port_addr, htons(port));
|
||||||
#endif
|
#endif
|
||||||
WRITE_OK(FTP_PORTOK);
|
WRITE_OK(FTP_PORTOK);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue