summaryrefslogtreecommitdiff
path: root/networking/tftp.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-02-08 20:41:41 +0000
committerDenis Vlasenko2007-02-08 20:41:41 +0000
commitb477e18c1e4cf40f5463d24523a10870ece10888 (patch)
treeaaab3999c29cc8d37870d1a0cf314fee16cc2dc6 /networking/tftp.c
parent0aa6ba5d44af32d0bf460c8d92cda686bae64c92 (diff)
downloadbusybox-b477e18c1e4cf40f5463d24523a10870ece10888.zip
busybox-b477e18c1e4cf40f5463d24523a10870ece10888.tar.gz
tftp: fix my bug
Diffstat (limited to 'networking/tftp.c')
-rw-r--r--networking/tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/tftp.c b/networking/tftp.c
index ada38bc..bbed9ac 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -280,7 +280,7 @@ static int tftp(
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) {