]> granicus.if.org Git - libtirpc/commit
rpcb_getaddr: Handle only "udp" and "tcp" netids when using PMAP_GETPORT
authorChuck Lever <chuck.lever@oracle.com>
Mon, 30 Nov 2009 13:55:43 +0000 (08:55 -0500)
committerSteve Dickson <steved@redhat.com>
Mon, 30 Nov 2009 13:55:43 +0000 (08:55 -0500)
commitacb5c5d0201dfe3ff486c3a471c7d9e3b72cb3b5
tree873d40572694f22c3fbf7596eb790e45f8b15aa7
parent4c3d6a16b6d1407846192f96d9fd1010c7c3f9a9
rpcb_getaddr: Handle only "udp" and "tcp" netids when using PMAP_GETPORT

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>
src/rpcb_clnt.c