From 074c9036b2e656eda086e71800552e1054a4d648 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 16 Mar 2009 21:01:41 +0000 Subject: [PATCH] ftpd: fix thinko: set_nport takes port in network order --- networking/ftpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.25.1