summaryrefslogtreecommitdiff
path: root/lib/libc/rpc/svc.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-04 12:57:30 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-04 12:57:30 +0000
commit2db7c150435d5ec09c17831df3a2f87143ffc8f5 (patch)
tree40a80d097cf72d5bf33864cc6c4a19d208a48072 /lib/libc/rpc/svc.c
parent1ba037f03bb46b3b97ed5c4fd0f8b097df56fac0 (diff)
clear xports after allocating it; netbsd pr#2194; from ragge@my28.sm.luth.se
Diffstat (limited to 'lib/libc/rpc/svc.c')
-rw-r--r--lib/libc/rpc/svc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/rpc/svc.c b/lib/libc/rpc/svc.c
index ea911b37b4f..12c42b2ca49 100644
--- a/lib/libc/rpc/svc.c
+++ b/lib/libc/rpc/svc.c
@@ -87,6 +87,7 @@ xprt_register(xprt)
if (xports == NULL) {
xports = (SVCXPRT **)
mem_alloc(FD_SETSIZE * sizeof(SVCXPRT *));
+ memset(xports, 0, FD_SETSIZE * sizeof(SVCXPRT *));
}
if (sock < FD_SETSIZE) {
xports[sock] = xprt;