Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
authorroland <roland>
Tue, 19 Mar 1996 19:51:30 +0000 (19:51 +0000)
committerroland <roland>
Tue, 19 Mar 1996 19:51:30 +0000 (19:51 +0000)
* sunrpc/svc_udp.c (svcudp_recv): changed test from 4*sizeof(u_long)
to 16 since it really wants 16 bytes.

sunrpc/svc_udp.c

index 079502c..a910452 100644 (file)
@@ -181,7 +181,7 @@ svcudp_recv(xprt, msg)
            0, (struct sockaddr *)&(xprt->xp_raddr), &(xprt->xp_addrlen));
        if (rlen == -1 && errno == EINTR)
                goto again;
-       if (rlen < 4*sizeof(u_long))
+       if (rlen < 16)          /* < 4 32-bit ints? */
                return (FALSE);
        xdrs->x_op = XDR_DECODE;
        XDR_SETPOS(xdrs, 0);