aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/rpc/svc_simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/rpc/svc_simple.c')
-rw-r--r--lib/libc/rpc/svc_simple.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/rpc/svc_simple.c b/lib/libc/rpc/svc_simple.c
index 83118bc067c1..7760039823cc 100644
--- a/lib/libc/rpc/svc_simple.c
+++ b/lib/libc/rpc/svc_simple.c
@@ -133,7 +133,9 @@ rpc_reg(prognum, versnum, procnum, progname, inproc, outproc, nettype)
madenow = FALSE;
svcxprt = NULL;
- for (pl = proglst; pl; pl = pl->p_nxt)
+ recvsz = 0;
+ xdrbuf = netid = NULL;
+ for (pl = proglst; pl; pl = pl->p_nxt) {
if (strcmp(pl->p_netid, nconf->nc_netid) == 0) {
svcxprt = pl->p_transp;
xdrbuf = pl->p_xdrbuf;
@@ -141,6 +143,7 @@ rpc_reg(prognum, versnum, procnum, progname, inproc, outproc, nettype)
netid = pl->p_netid;
break;
}
+ }
if (svcxprt == NULL) {
struct __rpc_sockinfo si;