1 From 9194122389f2a56b1cd1f935e64307e2e963c2da Mon Sep 17 00:00:00 2001
2 From: Steve Dickson <steved@redhat.com>
3 Date: Mon, 2 Nov 2015 17:05:18 -0500
4 Subject: [PATCH] handle_reply: Don't use the xp_auth pointer directly
6 In the latest libtirpc version to access the xp_auth
7 one must use the SVC_XP_AUTH macro. To be backwards
8 compatible a couple ifdefs were added to use the
11 Signed-off-by: Steve Dickson <steved@redhat.com>
12 [peda@axentia.se: backport from upstream]
13 Signed-off-by: Peter Rosin <peda@axentia.se>
15 src/rpcb_svc_com.c | 7 +++++++
16 1 file changed, 7 insertions(+)
18 diff --git a/src/rpcb_svc_com.c b/src/rpcb_svc_com.c
19 index 4ae93f1..22d6c84 100644
20 --- a/src/rpcb_svc_com.c
21 +++ b/src/rpcb_svc_com.c
22 @@ -1295,10 +1295,17 @@ handle_reply(int fd, SVCXPRT *xprt)
23 a.rmt_localvers = fi->versnum;
25 xprt_set_caller(xprt, fi);
26 +#if defined(SVC_XP_AUTH)
27 + SVC_XP_AUTH(xprt) = svc_auth_none;
29 xprt->xp_auth = &svc_auth_none;
31 svc_sendreply(xprt, (xdrproc_t) xdr_rmtcall_result, (char *) &a);
32 +#if !defined(SVC_XP_AUTH)
33 SVCAUTH_DESTROY(xprt->xp_auth);