summaryrefslogtreecommitdiffstats
path: root/lib/libstand/tftp.c
diff options
context:
space:
mode:
authormikeh <mikeh@FreeBSD.org>2001-06-30 21:39:09 +0000
committermikeh <mikeh@FreeBSD.org>2001-06-30 21:39:09 +0000
commiteb666cf8c5b1d56ebf2c84204a9a954c2c384909 (patch)
tree73cbdca39c8bd9231021e5c8f8d3b7c29a05932c /lib/libstand/tftp.c
parentd4e98f543a7948f22e315f70f36e7e6ab96424ca (diff)
downloadFreeBSD-src-eb666cf8c5b1d56ebf2c84204a9a954c2c384909.zip
FreeBSD-src-eb666cf8c5b1d56ebf2c84204a9a954c2c384909.tar.gz
Reset errno so that subsequent TFTP requests don't fail after the
first failure. PR: misc/25502 MFC after: 2 weeks
Diffstat (limited to 'lib/libstand/tftp.c')
-rw-r--r--lib/libstand/tftp.c2
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)
OpenPOWER on IntegriCloud