ftpd: fix thinko: set_nport takes port in network order

This commit is contained in:
Denis Vlasenko 2009-03-16 21:01:41 +00:00
parent fbf5846ce1
commit 074c9036b2

View File

@ -522,7 +522,7 @@ handle_port(void)
G.port_addr = xdotted2sockaddr(raw, port);
#else
G.port_addr = get_peer_lsa(STDIN_FILENO);
set_nport(G.port_addr, port);
set_nport(G.port_addr, htons(port));
#endif
WRITE_OK(FTP_PORTOK);
}