diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-08 20:41:41 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-08 20:41:41 +0000 |
commit | b477e18c1e4cf40f5463d24523a10870ece10888 (patch) | |
tree | aaab3999c29cc8d37870d1a0cf314fee16cc2dc6 /networking/tftp.c | |
parent | 0aa6ba5d44af32d0bf460c8d92cda686bae64c92 (diff) | |
download | busybox-w32-b477e18c1e4cf40f5463d24523a10870ece10888.tar.gz busybox-w32-b477e18c1e4cf40f5463d24523a10870ece10888.tar.bz2 busybox-w32-b477e18c1e4cf40f5463d24523a10870ece10888.zip |
tftp: fix my bug
Diffstat (limited to 'networking/tftp.c')
-rw-r--r-- | networking/tftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/tftp.c b/networking/tftp.c index ada38bc44..bbed9ac78 100644 --- a/networking/tftp.c +++ b/networking/tftp.c | |||
@@ -280,7 +280,7 @@ static int tftp( | |||
280 | unsigned from_port; | 280 | unsigned from_port; |
281 | case 1: | 281 | case 1: |
282 | from->len = peer_lsa->len; | 282 | from->len = peer_lsa->len; |
283 | memset(from, 0, peer_lsa->len); | 283 | memset(&from->sa, 0, peer_lsa->len); |
284 | len = recvfrom(socketfd, rbuf, tftp_bufsize, 0, | 284 | len = recvfrom(socketfd, rbuf, tftp_bufsize, 0, |
285 | &from->sa, &from->len); | 285 | &from->sa, &from->len); |
286 | if (len < 0) { | 286 | if (len < 0) { |