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
This commit is contained in:
parent
8d6301358e
commit
2abd9cf115
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user