aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMike Heffner <mikeh@FreeBSD.org>2001-06-30 21:39:09 +0000
committerMike Heffner <mikeh@FreeBSD.org>2001-06-30 21:39:09 +0000
commit646bd49ed1594f85e2d17ab6ad9abc4c3c5e8181 (patch)
tree73cbdca39c8bd9231021e5c8f8d3b7c29a05932c /lib
parent189c7da2ecbf403a75b1cd78a1ec082d25aee493 (diff)
downloadsrc-646bd49ed1594f85e2d17ab6ad9abc4c3c5e8181.tar.gz
src-646bd49ed1594f85e2d17ab6ad9abc4c3c5e8181.zip
Reset errno so that subsequent TFTP requests don't fail after the
first failure. PR: misc/25502 MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=79034
Diffstat (limited to 'lib')
-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 0f1602608f70..eb9b56f8bd41 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)