From cf3a405a521c15e0a0e93acc86e22a0c8e1ef42f Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 5 Apr 2003 03:47:18 +0000 Subject: [PATCH] PR/21014: Tom Lyon: Failure to clear string by passing the wrong size to memset --- lib/libc/rpc/svc_simple.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/rpc/svc_simple.c b/lib/libc/rpc/svc_simple.c index 3844cc578f3d..0e5f5d03e9f4 100644 --- a/lib/libc/rpc/svc_simple.c +++ b/lib/libc/rpc/svc_simple.c @@ -1,4 +1,4 @@ -/* $NetBSD: svc_simple.c,v 1.23 2003/01/18 11:29:07 thorpej Exp $ */ +/* $NetBSD: svc_simple.c,v 1.24 2003/04/05 03:47:18 christos Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -277,7 +277,7 @@ universal(rqstp, transp) /* decode arguments into a CLEAN buffer */ xdrbuf = pl->p_xdrbuf; /* Zero the arguments: reqd ! */ - (void) memset(xdrbuf, 0, sizeof (pl->p_recvsz)); + (void) memset(xdrbuf, 0, pl->p_recvsz); /* * Assuming that sizeof (xdrbuf) would be enough * for the arguments; if not then the program