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 0501bee commit f252dd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,6 @@ void rpc_destroy_context(struct rpc_context *rpc)
rpc->error_string = NULL;
}

free(rpc->context);
free(rpc->waitpdu);
rpc->waitpdu = NULL;
free(rpc->inbuf);
Expand All @@ -454,7 +453,8 @@ void rpc_destroy_context(struct rpc_context *rpc)
krb5_free_auth_data(rpc->auth_data);
}
free(discard_const(rpc->username));
#endif
free(rpc->context);
#endif /* HAVE_LIBKRB5 */
free(rpc);
}

Expand Down

0 comments on commit f252dd8

Please sign in to comment.