break on succes
authorChristos Zoulas <christos@zoulas.com>
Thu, 29 Dec 2011 21:18:30 +0000 (16:18 -0500)
committerChristos Zoulas <christos@zoulas.com>
Thu, 29 Dec 2011 21:18:30 +0000 (16:18 -0500)
conf/transp/transp_sockets.c

index 518528ff52d86616c8b4a7d6cbbd23e430539438..1cd132f59d8cac140447322cf23e4401a8dab331 100644 (file)
@@ -467,6 +467,8 @@ get_nfs_version(char *host, struct sockaddr_in *sin, u_long nfs_version, const c
 
       close(sock);
       clnt_destroy(clnt);
+      if (clnt_stat == RPC_SUCCESS)
+       break;
     } else {
   #ifdef HAVE_CLNT_SPCREATEERROR
       errstr = clnt_spcreateerror("");