mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
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
30577d19fa
commit
866e3c9008
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90316
@ -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