svn commit: trunk/busybox/networking

vda at busybox.net vda at busybox.net
Thu Feb 8 20:41:42 UTC 2007


Author: vda
Date: 2007-02-08 12:41:41 -0800 (Thu, 08 Feb 2007)
New Revision: 17823

Log:
tftp: fix my bug


Modified:
   trunk/busybox/networking/tftp.c


Changeset:
Modified: trunk/busybox/networking/tftp.c
===================================================================
--- trunk/busybox/networking/tftp.c	2007-02-08 19:07:11 UTC (rev 17822)
+++ trunk/busybox/networking/tftp.c	2007-02-08 20:41:41 UTC (rev 17823)
@@ -280,7 +280,7 @@
 				unsigned from_port;
 			case 1:
 				from->len = peer_lsa->len;
-				memset(from, 0, peer_lsa->len);
+				memset(&from->sa, 0, peer_lsa->len);
 				len = recvfrom(socketfd, rbuf, tftp_bufsize, 0,
 							&from->sa, &from->len);
 				if (len < 0) {




More information about the busybox-cvs mailing list