diff options
author | Denis Vlasenko | 2007-02-08 20:41:41 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-02-08 20:41:41 +0000 |
commit | b477e18c1e4cf40f5463d24523a10870ece10888 (patch) | |
tree | aaab3999c29cc8d37870d1a0cf314fee16cc2dc6 /networking | |
parent | 0aa6ba5d44af32d0bf460c8d92cda686bae64c92 (diff) | |
download | busybox-b477e18c1e4cf40f5463d24523a10870ece10888.zip busybox-b477e18c1e4cf40f5463d24523a10870ece10888.tar.gz |
tftp: fix my bug
Diffstat (limited to 'networking')
-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 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) { |