1 Submitted By: Bruce Dubbs <bdubbs_at_linuxfromscratch_dot_org>
3 Initial Package Version: 0.2.3
4 Upstream Status: Already in upstream git repository
6 Description: This patch fixes rpcbind to be able to build with
9 From 9194122389f2a56b1cd1f935e64307e2e963c2da Mon Sep 17 00:00:00 2001
10 From: Steve Dickson <steved@redhat.com>
11 Date: Mon, 2 Nov 2015 17:05:18 -0500
12 Subject: [PATCH] handle_reply: Don't use the xp_auth pointer directly
14 In the latest libtirpc version to access the xp_auth
15 one must use the SVC_XP_AUTH macro. To be backwards
16 compatible a couple ifdefs were added to use the
19 Signed-off-by: Steve Dickson <steved@redhat.com>
21 src/rpcb_svc_com.c | 7 +++++++
22 1 file changed, 7 insertions(+)
24 diff --git a/src/rpcb_svc_com.c b/src/rpcb_svc_com.c
25 index 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;
31 xprt_set_caller(xprt, fi);
32 +#if defined(SVC_XP_AUTH)
33 + SVC_XP_AUTH(xprt) = svc_auth_none;
35 xprt->xp_auth = &svc_auth_none;
37 svc_sendreply(xprt, (xdrproc_t) xdr_rmtcall_result, (char *) &a);
38 +#if !defined(SVC_XP_AUTH)
39 SVCAUTH_DESTROY(xprt->xp_auth);