From: Chuck Lever Date: Mon, 29 Jun 2009 16:44:17 +0000 (-0400) Subject: rpcb_clnt: RPC_PROGNOTREGISTERED is a permanent error X-Git-Tag: libtirpc-0-2-1-rc2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ccb6c5876454f5ed03aeee5a80b7cead35d29c7;p=libtirpc rpcb_clnt: RPC_PROGNOTREGISTERED is a permanent error rpcbind returns RPC_PROGNOTREGISTERED if it knows for certain that an RPC program is not supported for a given transport. This is a permanent and authoritative error, so the library's rpcbind query API should never retry the query -- it will only get the same answer. Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- diff --git a/src/rpcb_clnt.c b/src/rpcb_clnt.c index 732c556..6494370 100644 --- a/src/rpcb_clnt.c +++ b/src/rpcb_clnt.c @@ -781,7 +781,7 @@ __rpcb_findaddr_timed(program, version, nconf, host, clpp, tp) if ((ua == NULL) || (ua[0] == 0)) { /* address unknown */ rpc_createerr.cf_stat = RPC_PROGNOTREGISTERED; - continue; /* try other versions */ + goto error; } address = uaddr2taddr(nconf, ua); #ifdef ND_DEBUG