artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0f424d
)
clear xports after allocating it; netbsd pr#2194; from ragge@my28.sm.luth.se
author
deraadt
<deraadt@openbsd.org>
Sat, 4 May 1996 12:57:29 +0000
(12:57 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 4 May 1996 12:57:29 +0000
(12:57 +0000)
lib/libc/rpc/svc.c
patch
|
blob
|
history
diff --git
a/lib/libc/rpc/svc.c
b/lib/libc/rpc/svc.c
index
ea911b3
..
12c42b2
100644
(file)
--- 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;