aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/svc.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1996-08-12 14:00:26 +0000
committerPeter Wemm <peter@FreeBSD.org>1996-08-12 14:00:26 +0000
commit54edc0bbbfcc1123b31fa29f3502bb25e5769d93 (patch)
tree5ef6d941ce8ca2df8701e926198d01206fc35900 /lib/libc/rpc/svc.c
parentf2b2a91e75c461a66ed2969fc455ec98f6e9bb54 (diff)
downloadsrc-54edc0bbbfcc1123b31fa29f3502bb25e5769d93.tar.gz
src-54edc0bbbfcc1123b31fa29f3502bb25e5769d93.zip
clear various struct sockaddr_in's on stack, set sin_len.
(Noticed when comparing to OpenBSD source)
Notes
Notes: svn path=/head/; revision=17540
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 06c060918bb7..05f82d315472 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;