From b477e18c1e4cf40f5463d24523a10870ece10888 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 8 Feb 2007 20:41:41 +0000 Subject: [PATCH] tftp: fix my bug --- networking/tftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.25.1