summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-06-29 18:53:06 +0000
committerderaadt <deraadt@openbsd.org>1996-06-29 18:53:06 +0000
commit3003ca2c7fc28352c77cc6d9681ee13088bf0178 (patch)
treeec2c7905df27d4e1657b4bb8a2d43e8678582d75 /lib/libc/rpc
parenttypo (diff)
downloadwireguard-openbsd-3003ca2c7fc28352c77cc6d9681ee13088bf0178.tar.xz
wireguard-openbsd-3003ca2c7fc28352c77cc6d9681ee13088bf0178.zip
pmap_set/unset to loopback; should rewrite to search for loopback addr
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r--lib/libc/rpc/pmap_clnt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/rpc/pmap_clnt.c b/lib/libc/rpc/pmap_clnt.c
index db7d4e2c30b..3613fe6677c 100644
--- a/lib/libc/rpc/pmap_clnt.c
+++ b/lib/libc/rpc/pmap_clnt.c
@@ -71,6 +71,7 @@ pmap_set(program, version, protocol, port)
if (get_myaddress(&myaddress) != 0)
return (FALSE);
+ myaddress.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
client = clntudp_bufcreate(&myaddress, PMAPPROG, PMAPVERS,
timeout, &socket, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE);
if (client == (CLIENT *)NULL)
@@ -106,6 +107,7 @@ pmap_unset(program, version)
if (get_myaddress(&myaddress) != 0)
return (FALSE);
+ myaddress.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
client = clntudp_bufcreate(&myaddress, PMAPPROG, PMAPVERS,
timeout, &socket, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE);
if (client == (CLIENT *)NULL)