File 0003-rpcb_clnt.c-pass-the-version-argument-to-__try_proto.patch of Package libtirpc.7906

From f37875dfbe9b005925d52cfab7a7420d0be9f53c Mon Sep 17 00:00:00 2001
From: Thomas Blume <Thomas.Blume@suse.com>
Date: Wed, 23 May 2018 15:06:05 +0200
Subject: [PATCH 3/3] 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")

Signed-off-by: Thomas Blume <Thomas.Blume@suse.com>
(cherry picked from commit 2a0a21fbb9cae81293109db9c1a39953b89ebe39)
---
 src/rpcb_clnt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rpcb_clnt.c b/src/rpcb_clnt.c
index 4b44364..1c9d565 100644
--- a/src/rpcb_clnt.c
+++ b/src/rpcb_clnt.c
@@ -939,7 +939,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;
 	}
-- 
2.16.4