33 lines
991 B
Diff
33 lines
991 B
Diff
autofs-5.0.8 - fix rpc_portmap_getport() proto not set
|
|
|
|
From: Ian Kent <raven@themaw.net>
|
|
|
|
Recent changes to fix libtirpc usage problems when getting a server
|
|
exports list cause later server probing to fail.
|
|
|
|
When getting an exports list a new rpc client is always created for
|
|
the query, which includes setting the protocol in the parameters
|
|
structure. But when probing availability the client is reused where
|
|
possible and the protocol is not set in the parameters structure in
|
|
this case.
|
|
|
|
The rpc_portmap_getport() changes require that the protocol is set
|
|
in oder to function.
|
|
---
|
|
lib/rpc_subs.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/lib/rpc_subs.c b/lib/rpc_subs.c
|
|
index cfb63d2..7c99ea8 100644
|
|
--- a/lib/rpc_subs.c
|
|
+++ b/lib/rpc_subs.c
|
|
@@ -877,6 +877,8 @@ int rpc_portmap_getport(struct conn_info *info,
|
|
|
|
memset(&pmap_info, 0, sizeof(struct conn_info));
|
|
|
|
+ pmap_info.proto = proto;
|
|
+
|
|
if (proto == IPPROTO_TCP)
|
|
pmap_info.timeout.tv_sec = PMAP_TOUT_TCP;
|
|
else
|