projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0aa6ba5
)
tftp: fix my bug
author
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 8 Feb 2007 20:41:41 +0000
(20:41 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 8 Feb 2007 20:41:41 +0000
(20:41 -0000)
networking/tftp.c
patch
|
blob
|
history
diff --git
a/networking/tftp.c
b/networking/tftp.c
index ada38bc44f96fcbdd571945751a62b7db4e918ed..bbed9ac787581a9b9258f0620244d7212e2e01e1 100644
(file)
--- 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) {