summaryrefslogtreecommitdiff
path: root/usr/src/boot/lib/libstand/net.c
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2018-02-14 23:10:02 +0200
committerDan McDonald <danmcd@joyent.com>2018-02-15 11:32:32 -0500
commit9a5a2388e3d1f52bed03f56813569786dc86e353 (patch)
treef2c7a3bf287bf0eb14c4f176db8558b405fada46 /usr/src/boot/lib/libstand/net.c
parentf4033bcf10a5393890c1a83e912176aac34a10e2 (diff)
downloadillumos-joyent-9a5a2388e3d1f52bed03f56813569786dc86e353.tar.gz
9111 libstand: Fix IP recv timeout
Reviewed by: Yuri Pankov <yuripv@yuripv.net> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/boot/lib/libstand/net.c')
-rw-r--r--usr/src/boot/lib/libstand/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/boot/lib/libstand/net.c b/usr/src/boot/lib/libstand/net.c
index 740696a5a2..ea4c75b233 100644
--- a/usr/src/boot/lib/libstand/net.c
+++ b/usr/src/boot/lib/libstand/net.c
@@ -117,7 +117,7 @@ sendrecv(struct iodesc *d,
/* Try to get a packet and process it. */
cc = (*rproc)(d, pkt, payload, tleft);
/* Return on data, EOF or real error. */
- if (cc != -1 || errno != 0)
+ if (cc != -1 || (errno != 0 && errno != ETIMEDOUT))
return (cc);
/* Timed out or didn't get the packet we're waiting for */