From 646bd49ed1594f85e2d17ab6ad9abc4c3c5e8181 Mon Sep 17 00:00:00 2001 From: Mike Heffner Date: Sat, 30 Jun 2001 21:39:09 +0000 Subject: [PATCH] Reset errno so that subsequent TFTP requests don't fail after the first failure. PR: misc/25502 MFC after: 2 weeks --- lib/libstand/tftp.c | 2 ++ 1 file changed, 2 insertions(+) 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)