]> granicus.if.org Git - libtirpc/commitdiff
rpcb_clnt: RPC_PROGNOTREGISTERED is a permanent error libtirpc-0-2-1-rc2
authorChuck Lever <chuck.lever@oracle.com>
Mon, 29 Jun 2009 16:44:17 +0000 (12:44 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 29 Jun 2009 16:44:17 +0000 (12:44 -0400)
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 <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
src/rpcb_clnt.c

index 732c5568270ca38c73d96993487cb145506f00c1..64943707bf7670648be65f9fcc3c6a317843853b 100644 (file)
@@ -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