svn commit: [25696] trunk/busybox/networking

vda at busybox.net vda at busybox.net
Mon Mar 16 21:01:42 UTC 2009


Author: vda
Date: 2009-03-16 21:01:41 +0000 (Mon, 16 Mar 2009)
New Revision: 25696

Log:
ftpd: fix thinko: set_nport takes port in network order



Modified:
   trunk/busybox/networking/ftpd.c


Changeset:
Modified: trunk/busybox/networking/ftpd.c
===================================================================
--- trunk/busybox/networking/ftpd.c	2009-03-16 20:58:15 UTC (rev 25695)
+++ trunk/busybox/networking/ftpd.c	2009-03-16 21:01:41 UTC (rev 25696)
@@ -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);
 }



More information about the busybox-cvs mailing list