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:
alfred 2002-02-06 19:14:02 +00:00
parent b090adde5f
commit e4eecda8db

View File

@ -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);
}