projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b36bf52
)
boot - tftp - Fix bzero() with wild length field.
author
Matthew Dillon <dillon@apollo.backplane.com>
Mon, 12 Oct 2009 23:46:32 +0000 (16:46 -0700)
committer
Matthew Dillon <dillon@apollo.backplane.com>
Mon, 12 Oct 2009 23:46:32 +0000 (16:46 -0700)
Reported-by: swildner
lib/libstand/tftp.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/libstand/tftp.c
b/lib/libstand/tftp.c
index
550ee33
..
efad4c5
100644
(file)
--- a/
lib/libstand/tftp.c
+++ b/
lib/libstand/tftp.c
@@
-126,7
+126,7
@@
recvtftp(struct iodesc *d, void *pkt, size_t max_len, time_t tleft)
* get a DATA.
*/
errno = 0;
- bzero(pkt, len);
+ bzero(pkt, max_len);
if (d->xid == 1) {
len = -1;
while ((tmp_len = readudp(d, pkt, max_len, tleft)) > 0) {