The PORTMAP logic in __rpcb_findaddr_timed() already prevents its
use if the protocol family is not PF_INET. In addition, ensure that
the rpcbind v2 logic in __rpcb_findaddr_timed() is executed only if
the requested transport protocol name is "tcp" or "udp".
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
}
client = getclnthandle(host, newnconf, &parms.r_addr);
freenetconfigent(newnconf);
- } else {
+ } else if (strcmp(nconf->nc_proto, NC_UDP) == 0)
client = getclnthandle(host, nconf, &parms.r_addr);
- }
+ else
+ goto try_rpcbind;
if (client == NULL)
return (NULL);