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:
Alfred Perlstein 2002-02-05 23:46:37 +00:00
parent 8d6301358e
commit 2abd9cf115

View File

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