diff options
-rw-r--r-- | src/rpcb_clnt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rpcb_clnt.c b/src/rpcb_clnt.c index e8a5d27..4a3e96c 100644 --- a/src/rpcb_clnt.c +++ b/src/rpcb_clnt.c @@ -759,9 +759,10 @@ __rpcb_findaddr_timed(program, version, nconf, host, clpp, tp) } 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); |