diff options
author | 1996-05-04 12:57:29 +0000 | |
---|---|---|
committer | 1996-05-04 12:57:29 +0000 | |
commit | 4aa3277ab70d3b29bd713aae9b55217ea4b8c48d (patch) | |
tree | 004bd2766140dc127112d29e7c789dc7cd7c1194 /lib/libc/rpc | |
parent | allow operation even if fstab does not label filesystem as supporting (diff) | |
download | wireguard-openbsd-4aa3277ab70d3b29bd713aae9b55217ea4b8c48d.tar.xz wireguard-openbsd-4aa3277ab70d3b29bd713aae9b55217ea4b8c48d.zip |
clear xports after allocating it; netbsd pr#2194; from ragge@my28.sm.luth.se
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r-- | lib/libc/rpc/svc.c | 1 |
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; |