(pmap_set): Do CLNT_DESTROY even if CLNT_CALL failed.
authordrepper <drepper>
Tue, 30 Dec 2003 17:56:29 +0000 (17:56 +0000)
committerdrepper <drepper>
Tue, 30 Dec 2003 17:56:29 +0000 (17:56 +0000)
sunrpc/pmap_clnt.c

index 7c9a5a3..d88487d 100644 (file)
@@ -135,7 +135,7 @@ pmap_set (u_long program, u_long version, int protocol, u_short port)
                 tottimeout) != RPC_SUCCESS)
     {
       clnt_perror (client, _("Cannot register service"));
-      return FALSE;
+      rslt = FALSE;
     }
   CLNT_DESTROY (client);
   /* (void)close(socket); CLNT_DESTROY closes it */