Skip to content

Commit 52bb2d5

Browse files
authored
Merge pull request #169 from dang/push
NSM - Don't force UDP portmapper lookups
2 parents cb0cf40 + 4d6067c commit 52bb2d5

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/rpcb_clnt.c

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -679,21 +679,8 @@ __rpcb_findaddr_timed(rpcprog_t program, rpcvers_t version,
679679
rpcvers_t pmapvers = 2;
680680
uint16_t port = 0;
681681

682-
/*
683-
* Try UDP only - there are some portmappers out
684-
* there that use UDP only.
685-
*/
686682
if (strcmp(nconf->nc_proto, NC_TCP) == 0) {
687-
struct netconfig *newnconf;
688-
689-
newnconf = getnetconfigent("udp");
690-
if (!newnconf) {
691-
client = clnt_raw_ncreate(program, version);
692-
client->cl_error.re_status = RPC_UNKNOWNPROTO;
693-
goto error;
694-
}
695-
client = getclnthandle(host, newnconf, &parms.r_addr);
696-
freenetconfigent(newnconf);
683+
client = getclnthandle(host, nconf, &parms.r_addr);
697684
} else if (strcmp(nconf->nc_proto, NC_UDP) == 0)
698685
client = getclnthandle(host, nconf, &parms.r_addr);
699686
else

0 commit comments

Comments
 (0)