Blame SOURCES/autofs-5.0.8-fix-fix-ipv6-libtirpc-getport.patch

304803
autofs-5.0.8 - fix fix ipv6 libtirpc getport
304803
304803
From: Ian Kent <raven@themaw.net>
304803
304803
Remove a duplicated case entry and remove redundant check, since it
304803
can never be reached, in rpc_rpcb_getport().
304803
---
304803
 CHANGELOG      |    1 +
304803
 lib/rpc_subs.c |    6 +-----
304803
 2 files changed, 2 insertions(+), 5 deletions(-)
304803
304803
--- autofs-5.0.7.orig/CHANGELOG
304803
+++ autofs-5.0.7/CHANGELOG
304803
@@ -66,6 +66,7 @@
304803
 - only probe specific nfs version if requested.
304803
 - fix ipv6 libtirpc getport.
304803
 - improve timeout option description.
304803
+- fix fix ipv6 libtirpc getport.
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
--- autofs-5.0.7.orig/lib/rpc_subs.c
304803
+++ autofs-5.0.7/lib/rpc_subs.c
304803
@@ -524,7 +524,6 @@ static enum clnt_stat rpc_rpcb_getport(C
304803
 			if (rpcerr.re_vers.low > RPCBVERS4)
304803
 				return status;
304803
 			continue;
304803
-		case RPC_PROCUNAVAIL:
304803
 		case RPC_PROGUNAVAIL:
304803
 			continue;
304803
 		default:
304803
@@ -533,10 +532,7 @@ static enum clnt_stat rpc_rpcb_getport(C
304803
 		}
304803
 	}
304803
 
304803
-        if (s_port == 0)
304803
-		return RPC_PROGNOTREGISTERED;
304803
-
304803
-        return RPC_PROCUNAVAIL;
304803
+	return RPC_PROGNOTREGISTERED;
304803
 }
304803
 
304803
 static enum clnt_stat rpc_getport(struct conn_info *info,