diff options
author | mikeh <mikeh@FreeBSD.org> | 2001-06-30 21:39:09 +0000 |
---|---|---|
committer | mikeh <mikeh@FreeBSD.org> | 2001-06-30 21:39:09 +0000 |
commit | eb666cf8c5b1d56ebf2c84204a9a954c2c384909 (patch) | |
tree | 73cbdca39c8bd9231021e5c8f8d3b7c29a05932c | |
parent | d4e98f543a7948f22e315f70f36e7e6ab96424ca (diff) | |
download | FreeBSD-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
-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) |