* sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
	== IPPROTO_TCP.
	Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
This commit is contained in:
Ulrich Drepper 2003-01-14 19:50:21 +00:00
parent 2f279b14e7
commit 086311a933
2 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,9 @@
2003-01-14 Ulrich Drepper <drepper@redhat.com> 2003-01-14 Ulrich Drepper <drepper@redhat.com>
* sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
== IPPROTO_TCP.
Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
* sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags): * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
Fix entry for bit 31. Fix entry for bit 31.

View File

@ -66,6 +66,10 @@ pmap_getport (address, program, version, protocol)
struct pmap parms; struct pmap parms;
address->sin_port = htons (PMAPPORT); address->sin_port = htons (PMAPPORT);
if (protocol == IPPROTO_TCP)
client = INTUSE(clnttcp_create) (address, PMAPPROG, PMAPVERS, &socket,
RPCSMALLMSGSIZE, RPCSMALLMSGSIZE);
else
client = INTUSE(clntudp_bufcreate) (address, PMAPPROG, PMAPVERS, timeout, client = INTUSE(clntudp_bufcreate) (address, PMAPPROG, PMAPVERS, timeout,
&socket, RPCSMALLMSGSIZE, &socket, RPCSMALLMSGSIZE,
RPCSMALLMSGSIZE); RPCSMALLMSGSIZE);