diff options
author | alfred <alfred@FreeBSD.org> | 2002-02-06 19:14:02 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-02-06 19:14:02 +0000 |
commit | e4eecda8dbaeb25ddc620e97fa6160cc7223bde7 (patch) | |
tree | 997d62cf3819bc4b0fd94fb665605bba0911a7c6 | |
parent | b090adde5f26c39adbf9c1ef4a1c8ef4d1ff409e (diff) | |
download | FreeBSD-src-e4eecda8dbaeb25ddc620e97fa6160cc7223bde7.zip FreeBSD-src-e4eecda8dbaeb25ddc620e97fa6160cc7223bde7.tar.gz |
Move the AF_LOCAL check to the AF_INET check since portmap protocol
v. 2 only needs this. That also makes it shorter and simpler.
Submitted by: mbr
-rw-r--r-- | lib/libc/rpc/svc_vc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libc/rpc/svc_vc.c b/lib/libc/rpc/svc_vc.c index 6e32772..a7cb080 100644 --- a/lib/libc/rpc/svc_vc.c +++ b/lib/libc/rpc/svc_vc.c @@ -312,12 +312,8 @@ again: return (FALSE); memcpy(xprt->xp_rtaddr.buf, &addr, len); xprt->xp_rtaddr.len = len; - if (addr.ss_family == AF_LOCAL) { - xprt->xp_raddr = *(struct sockaddr_in *)xprt->xp_rtaddr.buf; - xprt->xp_addrlen = sizeof (struct sockaddr_in); - } #ifdef PORTMAP - if (addr.ss_family == AF_INET) { + if (addr.ss_family == AF_INET || addr.ss_family == AF_LOCAL) { xprt->xp_raddr = *(struct sockaddr_in *)xprt->xp_rtaddr.buf; xprt->xp_addrlen = sizeof (struct sockaddr_in); } |