summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/svc.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-08-12 14:00:26 +0000
committerpeter <peter@FreeBSD.org>1996-08-12 14:00:26 +0000
commitc2fcbeb6ff1e38452f855641439831a4746ef02a (patch)
tree5ef6d941ce8ca2df8701e926198d01206fc35900 /lib/libc/rpc/svc.c
parent633999a94babb0ab1ca53d9f3c8d9d8d70423752 (diff)
downloadFreeBSD-src-c2fcbeb6ff1e38452f855641439831a4746ef02a.zip
FreeBSD-src-c2fcbeb6ff1e38452f855641439831a4746ef02a.tar.gz
clear various struct sockaddr_in's on stack, set sin_len.
(Noticed when comparing to OpenBSD source)
Diffstat (limited to 'lib/libc/rpc/svc.c')
-rw-r--r--lib/libc/rpc/svc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/rpc/svc.c b/lib/libc/rpc/svc.c
index 06c0609..05f82d3 100644
--- a/lib/libc/rpc/svc.c
+++ b/lib/libc/rpc/svc.c
@@ -30,7 +30,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)svc.c 1.44 88/02/08 Copyr 1984 Sun Micro";*/
/*static char *sccsid = "from: @(#)svc.c 2.4 88/08/11 4.0 RPCSRC";*/
-static char *rcsid = "$Id: svc.c,v 1.4 1996/06/10 00:49:18 jraynard Exp $";
+static char *rcsid = "$Id: svc.c,v 1.5 1996/06/11 17:22:50 jraynard Exp $";
#endif
/*
@@ -92,6 +92,7 @@ xprt_register(xprt)
if (xports == NULL) {
xports = (SVCXPRT **)
mem_alloc(FD_SETSIZE * sizeof(SVCXPRT *));
+ memset(xports, 0, FD_SETSIZE * sizeof(SVCXPRT *));
}
if (sock < _rpc_dtablesize()) {
xports[sock] = xprt;
OpenPOWER on IntegriCloud