summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2008-03-30 09:35:04 +0000
committerDoug Rabson <dfr@FreeBSD.org>2008-03-30 09:35:04 +0000
commit7ea7cc4bab9e90f7df63848d5e638fdefa8410d4 (patch)
tree2c38ba886ad063a40fc9f78675a159dcfe65ebc1 /lib/libc
parentc77b232bb60787f6ac16447ea204ced85f888c42 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/xdr/xdr_rec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/xdr/xdr_rec.c b/lib/libc/xdr/xdr_rec.c
index a50d1414ad4a..34238ed01321 100644
--- a/lib/libc/xdr/xdr_rec.c
+++ b/lib/libc/xdr/xdr_rec.c
@@ -574,6 +574,12 @@ __xdrrec_getrec(xdrs, statp, expectdata)
rstrm->in_header &= ~LAST_FRAG;
rstrm->last_frag = TRUE;
}
+ /*
+ * We can only reasonably expect to read once from a
+ * non-blocking stream. Reading the fragment header
+ * may have drained the stream.
+ */
+ expectdata = FALSE;
}
n = rstrm->readit(rstrm->tcp_handle,