From 5ccb6c5876454f5ed03aeee5a80b7cead35d29c7 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Mon, 29 Jun 2009 12:44:17 -0400 Subject: 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 --- src/rpcb_clnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1