diff options
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) |