diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-29 18:53:07 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-29 18:53:07 +0000 |
commit | 51529c3607a02a62468ccee8783cb2c5d7e65486 (patch) | |
tree | 142e216f9226161beb33b5250dadd7f98153666a /lib | |
parent | 04f9617075e5eb35478fc7d5c4cd6cc0e8980fb8 (diff) |
pmap_set/unset to loopback; should rewrite to search for loopback addr
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/rpc/pmap_clnt.c | 2 |
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) |