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
This commit is contained in:
parent
b090adde5f
commit
e4eecda8db
@ -312,12 +312,8 @@ rendezvous_request(xprt, msg)
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user