mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
tftp: fix my bug
This commit is contained in:
parent
0aa6ba5d44
commit
b477e18c1e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user