Skip to content

Commit

Permalink
Fix compile error when krb5 is disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Ronnie Sahlberg <[email protected]>
  • Loading branch information
sahlberg committed Feb 18, 2024
1 parent f252dd8 commit d23f9ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/pdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,19 @@ 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);

if (pdu->zdr_decode_buf != NULL) {
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);
Expand Down

0 comments on commit d23f9ad

Please sign in to comment.