diff options
Diffstat (limited to 'lib/libstand/tftp.c')
-rw-r--r-- | lib/libstand/tftp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libstand/tftp.c b/lib/libstand/tftp.c index 0f16026..eb9b56f 100644 --- a/lib/libstand/tftp.c +++ b/lib/libstand/tftp.c @@ -117,6 +117,8 @@ recvtftp(d, pkt, len, tleft) { struct tftphdr *t; + errno = 0; + len = readudp(d, pkt, len, tleft); if (len < 4) |