diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-16 21:01:41 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-16 21:01:41 +0000 |
commit | 074c9036b2e656eda086e71800552e1054a4d648 (patch) | |
tree | b3a341655c94045bbea230c1ef8da180fc6a0192 /networking | |
parent | fbf5846ce1e6c34caa1853d9c1fa9ccac16a52c9 (diff) | |
download | busybox-074c9036b2e656eda086e71800552e1054a4d648.tar.gz |
ftpd: fix thinko: set_nport takes port in network order
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ftpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c index 3b98bacf4..9a1ea65cc 100644 --- a/networking/ftpd.c +++ b/networking/ftpd.c @@ -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); } |