commit | 074c9036b2e656eda086e71800552e1054a4d648 | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Mon Mar 16 21:01:41 2009 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Mon Mar 16 21:01:41 2009 +0000 |
tree | b3a341655c94045bbea230c1ef8da180fc6a0192 | |
parent | fbf5846ce1e6c34caa1853d9c1fa9ccac16a52c9 [diff] [blame] |
ftpd: fix thinko: set_nport takes port in network order
diff --git a/networking/ftpd.c b/networking/ftpd.c index 3b98bac..9a1ea65 100644 --- a/networking/ftpd.c +++ b/networking/ftpd.c
@@ -522,7 +522,7 @@ 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); }