From 70af780508a9115e10ec433d3dec4b633e7cfb65 Mon Sep 17 00:00:00 2001 From: csgr Date: Wed, 31 Aug 1994 12:38:18 +0000 Subject: Fix comparison of int against unsigned when checking error return from recvfrom() (This bug is also present in FreeBSD 1.1.5.1.) Bug Reported by : Thomas.Koenig@ciw.uni-karlsruhe.de Reviewed by: geoff. --- lib/libc/rpc/svc_udp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/rpc/svc_udp.c b/lib/libc/rpc/svc_udp.c index d7c7bb2..e69318c 100644 --- a/lib/libc/rpc/svc_udp.c +++ b/lib/libc/rpc/svc_udp.c @@ -30,7 +30,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)svc_udp.c 1.24 87/08/11 Copyr 1984 Sun Micro";*/ /*static char *sccsid = "from: @(#)svc_udp.c 2.2 88/07/29 4.0 RPCSRC";*/ -static char *rcsid = "$Id: svc_udp.c,v 1.1 1993/10/27 05:41:03 paul Exp $"; +static char *rcsid = "$Id: svc_udp.c,v 1.1 1994/08/07 18:36:12 wollman Exp $"; #endif /* @@ -185,7 +185,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 < (int)(4*sizeof(u_long))) return (FALSE); xdrs->x_op = XDR_DECODE; XDR_SETPOS(xdrs, 0); -- cgit v1.1