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

304803
autofs-5.0.8 - fix rpc_portmap_getport() proto not set
304803
304803
From: Ian Kent <raven@themaw.net>
304803
304803
Recent changes to fix libtirpc usage problems when getting a server
304803
exports list cause later server probing to fail.
304803
304803
When getting an exports list a new rpc client is always created for
304803
the query, which includes setting the protocol in the parameters
304803
structure. But when probing availability the client is reused where
304803
possible and the protocol is not set in the parameters structure in
304803
this case.
304803
304803
The rpc_portmap_getport() changes require that the protocol is set
304803
in oder to function.
304803
---
304803
 CHANGELOG      |    1 +
304803
 lib/rpc_subs.c |    2 ++
304803
 2 files changed, 3 insertions(+)
304803
304803
--- autofs-5.0.7.orig/CHANGELOG
304803
+++ autofs-5.0.7/CHANGELOG
304803
@@ -68,6 +68,7 @@
304803
 - improve timeout option description.
304803
 - fix fix ipv6 libtirpc getport.
304803
 - get_nfs_info() should query portmapper if port is not given.
304803
+- fix rpc_portmap_getport() proto not set.
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
@@ -877,6 +877,8 @@ int rpc_portmap_getport(struct conn_info
304803
 
304803
 	memset(&pmap_info, 0, sizeof(struct conn_info));
304803
 
304803
+	pmap_info.proto = proto;
304803
+
304803
 	if (proto == IPPROTO_TCP)
304803
 		pmap_info.timeout.tv_sec = PMAP_TOUT_TCP;
304803
 	else