summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Blume <Thomas.Blume@suse.com>2018-07-18 13:54:34 -0400
committerSteve Dickson <steved@redhat.com>2018-07-18 14:29:26 -0400
commit92171d587264bf54b57db1a8215638d7171eff1c (patch)
tree08ca5a4d860c74f5e65b6eb1050035bd1ac0720e /src
parent145272c2b6d89a1c3a7de86a2cbef43880f1b61b (diff)
downloadti-rpc-92171d587264bf54b57db1a8215638d7171eff1c.tar.gz
rpcb_clnt.c: pass the version argument to __try_protocol_version_2
Fixes: 5e7b57bc20bd ("rpcinfo: change order of version to be tried to 4, 3, 2") Reviewed-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Thomas Blume <Thomas.Blume@suse.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/rpcb_clnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcb_clnt.c b/src/rpcb_clnt.c
index d6fefd0..e45736a 100644
--- a/src/rpcb_clnt.c
+++ b/src/rpcb_clnt.c
@@ -944,7 +944,7 @@ __rpcb_findaddr_timed(program, version, nconf, host, clpp, tp)
#ifdef PORTMAP /* Try version 2 for TCP or UDP */
if (strcmp(nconf->nc_protofmly, NC_INET) == 0) {
- address = __try_protocol_version_2(program, 2, nconf, host, tp);
+ address = __try_protocol_version_2(program, version, nconf, host, tp);
if (address == NULL)
goto error;
}