summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-02-05 23:46:37 +0000
committeralfred <alfred@FreeBSD.org>2002-02-05 23:46:37 +0000
commita7364d549e2fde76da63105d00a9d1cbb2d86823 (patch)
treef9d203bfaee5d388a96597d7df4838935f841fd5 /lib
parent568956257500195a80a63ba67f283e98c05c43c1 (diff)
downloadFreeBSD-src-a7364d549e2fde76da63105d00a9d1cbb2d86823.zip
FreeBSD-src-a7364d549e2fde76da63105d00a9d1cbb2d86823.tar.gz
For RPC v2 we need to fill in ret->xp_raddr too. INET_6
is not supported in portmap, so we don't have to care about it. Submitted by: mbr
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/rpc/svc_vc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/rpc/svc_vc.c b/lib/libc/rpc/svc_vc.c
index d2a2477..6e32772 100644
--- a/lib/libc/rpc/svc_vc.c
+++ b/lib/libc/rpc/svc_vc.c
@@ -222,7 +222,7 @@ svc_fd_create(fd, sendsize, recvsize)
}
memcpy(ret->xp_rtaddr.buf, &ss, (size_t)ss.ss_len);
#ifdef PORTMAP
- if (ss.ss_family == AF_INET) {
+ if (ss.ss_family == AF_INET || ss.ss_family == AF_LOCAL) {
ret->xp_raddr = *(struct sockaddr_in *)ret->xp_rtaddr.buf;
ret->xp_addrlen = sizeof (struct sockaddr_in);
}
OpenPOWER on IntegriCloud