OSDN Git Service

pmap_getport: use TCP to talk to portmapper if protocol == IPPROTO_TCP.
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 7 Oct 2013 14:42:26 +0000 (16:42 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 7 Oct 2013 14:46:11 +0000 (16:46 +0200)
commitc533aca08e29d4f659ca0ac011e5162b483dc6a9
treef26ee0138d7d1f34409d2aa8b7bd5d05768265a7
parentf22cca4722fa66e424562e69f4afa2bca0af871d
pmap_getport: use TCP to talk to portmapper if protocol == IPPROTO_TCP.

Before the patch, the query itself was sent via UDP
(the query contained correct protocol ID).

The fix is taken from glibc.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libc/inet/rpc/pm_getport.c