aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/tftp.c2
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(
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) {