From 81ac67ad74e0879cc0eb86f9abc74aca905c027b Mon Sep 17 00:00:00 2001 From: wpaul Date: Wed, 19 Jan 2000 06:12:32 +0000 Subject: Close PR#16028. Make the sanity check saner. The condition that we check for on the server may arise legitimately on the client. The correct way to check for a zero record length is to check for it without the LAST_FRAG marker in it, since it's legal to send a LAST_FRAG marker with 0 bytes of data. PR: misc/16028 --- lib/libc/xdr/xdr_rec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/xdr') diff --git a/lib/libc/xdr/xdr_rec.c b/lib/libc/xdr/xdr_rec.c index b96b634..7136463 100644 --- a/lib/libc/xdr/xdr_rec.c +++ b/lib/libc/xdr/xdr_rec.c @@ -558,7 +558,7 @@ set_input_fragment(rstrm) * but we don't have any way to be certain that they aren't * what the client actually intended to send us. */ - if ((header & (~LAST_FRAG)) == 0) + if (header == 0) return(FALSE); rstrm->fbtbc = header & (~LAST_FRAG); return (TRUE); -- cgit v1.1