From d23f9addb263ebd67f54d46303b36d38e30c3dab Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sun, 18 Feb 2024 20:36:27 +1000 Subject: [PATCH] Fix compile error when krb5 is disabled Signed-off-by: Ronnie Sahlberg --- lib/pdu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/pdu.c b/lib/pdu.c index dc33c617..de14ba49 100644 --- a/lib/pdu.c +++ b/lib/pdu.c @@ -305,7 +305,9 @@ struct rpc_pdu *rpc_allocate_pdu(struct rpc_context *rpc, int program, int versi void rpc_free_pdu(struct rpc_context *rpc, struct rpc_pdu *pdu) { +#ifdef HAVE_LIBKRB5 uint32_t min; +#endif /* HAVE_LIBKRB5 */ assert(rpc->magic == RPC_CONTEXT_MAGIC); @@ -313,7 +315,9 @@ void rpc_free_pdu(struct rpc_context *rpc, struct rpc_pdu *pdu) zdr_free(pdu->zdr_decode_fn, pdu->zdr_decode_buf); } +#ifdef HAVE_LIBKRB5 gss_release_buffer(&min, &pdu->output_buffer); +#endif /* HAVE_LIBKRB5 */ zdr_destroy(&pdu->zdr); rpc_free_iovector(rpc, &pdu->out);