diff options
| author | Martin Blapp <mbr@FreeBSD.org> | 2003-05-28 09:13:09 +0000 |
|---|---|---|
| committer | Martin Blapp <mbr@FreeBSD.org> | 2003-05-28 09:13:09 +0000 |
| commit | 22e4d31a81e3c2d663c2c6302d3c2b2af3526222 (patch) | |
| tree | 8a3afd1f30eaa0557eec40df42ac067fb2ecf3dc /lib/libc/xdr | |
| parent | f4203da86c97fb14101aee42509dcc755aefce62 (diff) | |
Notes
Diffstat (limited to 'lib/libc/xdr')
| -rw-r--r-- | lib/libc/xdr/xdr_rec.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/libc/xdr/xdr_rec.c b/lib/libc/xdr/xdr_rec.c index 340febd55c9e..cb5a3023563e 100644 --- a/lib/libc/xdr/xdr_rec.c +++ b/lib/libc/xdr/xdr_rec.c @@ -489,15 +489,6 @@ xdrrec_eof(xdrs) XDR *xdrs; { RECSTREAM *rstrm = (RECSTREAM *)(xdrs->x_private); - enum xprt_stat xstat; - - if (rstrm->nonblock) { - if (__xdrrec_getrec(xdrs, &xstat, FALSE)) - return FALSE; - if (!rstrm->in_haveheader && xstat == XPRT_IDLE) - return TRUE; - return FALSE; - } while (rstrm->fbtbc > 0 || (! rstrm->last_frag)) { if (! skip_input_bytes(rstrm, rstrm->fbtbc)) @@ -719,6 +710,8 @@ set_input_fragment(rstrm) { u_int32_t header; + if (rstrm->nonblock) + return FALSE; if (! get_input_bytes(rstrm, (char *)(void *)&header, sizeof(header))) return (FALSE); header = ntohl(header); |
