]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/rpcbind/rpcbind-0.2.3-tirpc_fix-1.patch
libtirpc: Update to 1.3.1
[people/pmueller/ipfire-2.x.git] / src / patches / rpcbind / rpcbind-0.2.3-tirpc_fix-1.patch
CommitLineData
e93a0b06
JS
1Submitted By: Bruce Dubbs <bdubbs_at_linuxfromscratch_dot_org>
2Date: 2015-11-29
3Initial Package Version: 0.2.3
4Upstream Status: Already in upstream git repository
5Origin: Upstream
6Description: This patch fixes rpcbind to be able to build with
7 recent tirpc versions.
8
9From 9194122389f2a56b1cd1f935e64307e2e963c2da Mon Sep 17 00:00:00 2001
10From: Steve Dickson <steved@redhat.com>
11Date: Mon, 2 Nov 2015 17:05:18 -0500
12Subject: [PATCH] handle_reply: Don't use the xp_auth pointer directly
13
14In the latest libtirpc version to access the xp_auth
15one must use the SVC_XP_AUTH macro. To be backwards
16compatible a couple ifdefs were added to use the
17macro when it exists.
18
19Signed-off-by: Steve Dickson <steved@redhat.com>
20---
21 src/rpcb_svc_com.c | 7 +++++++
22 1 file changed, 7 insertions(+)
23
24diff --git a/src/rpcb_svc_com.c b/src/rpcb_svc_com.c
25index 4ae93f1..22d6c84 100644
26--- a/src/rpcb_svc_com.c
27+++ b/src/rpcb_svc_com.c
28@@ -1295,10 +1295,17 @@ handle_reply(int fd, SVCXPRT *xprt)
29 a.rmt_localvers = fi->versnum;
30
31 xprt_set_caller(xprt, fi);
32+#if defined(SVC_XP_AUTH)
33+ SVC_XP_AUTH(xprt) = svc_auth_none;
34+#else
35 xprt->xp_auth = &svc_auth_none;
36+#endif
37 svc_sendreply(xprt, (xdrproc_t) xdr_rmtcall_result, (char *) &a);
38+#if !defined(SVC_XP_AUTH)
39 SVCAUTH_DESTROY(xprt->xp_auth);
40 xprt->xp_auth = NULL;
41+#endif
42+
43 done:
44 if (buffer)
45 free(buffer);
46--
471.8.2.1
48