aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2016-01-18 03:52:44 +0000
committerEnji Cooper <ngie@FreeBSD.org>2016-01-18 03:52:44 +0000
commit7fa6ad45da435f327f946cb9c4505a8b95c1f5aa (patch)
tree7de9136aef9cd6d0303e5fb0036e07aefc418740
parent6c6cdc657cee9d34fa52597fc85dd31515e2538c (diff)
Notes
-rw-r--r--lib/libc/rpc/rpcb_clnt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/rpc/rpcb_clnt.c b/lib/libc/rpc/rpcb_clnt.c
index 943d7c899ba5..117ee0f007b8 100644
--- a/lib/libc/rpc/rpcb_clnt.c
+++ b/lib/libc/rpc/rpcb_clnt.c
@@ -675,11 +675,11 @@ __rpcbind_is_up()
strcmp(nconf->nc_protofmly, NC_LOOPBACK) == 0)
break;
}
+ endnetconfig(localhandle);
+
if (nconf == NULL)
return (FALSE);
- endnetconfig(localhandle);
-
memset(&sun, 0, sizeof sun);
sock = _socket(AF_LOCAL, SOCK_STREAM, 0);
if (sock < 0)