X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot.git;a=blobdiff_plain;f=moonshot%2Fmech_eap%2Futil_context.c;h=8ff6c50d6909f9d7828b86de1707bcb0dca4c805;hp=5a39424f68097b525d504a704f39c87e5e975f9d;hb=438d1c89e95b9691054ab136ae815ac3d70e9053;hpb=c9d5774e4352bc80ce5529acef5704d744522b46 diff --git a/moonshot/mech_eap/util_context.c b/moonshot/mech_eap/util_context.c index 5a39424..8ff6c50 100644 --- a/moonshot/mech_eap/util_context.c +++ b/moonshot/mech_eap/util_context.c @@ -84,6 +84,7 @@ releaseInitiatorContext(struct gss_eap_initiator_ctx *ctx) eap_peer_sm_deinit(ctx->eap); } +#ifdef GSSEAP_ENABLE_ACCEPTOR static void releaseAcceptorContext(struct gss_eap_acceptor_ctx *ctx) { @@ -99,6 +100,7 @@ releaseAcceptorContext(struct gss_eap_acceptor_ctx *ctx) if (ctx->vps != NULL) gssEapRadiusFreeAvps(&tmpMinor, &ctx->vps); } +#endif /* GSSEAP_ENABLE_ACCEPTOR */ OM_uint32 gssEapReleaseContext(OM_uint32 *minor, @@ -122,7 +124,9 @@ gssEapReleaseContext(OM_uint32 *minor, if (CTX_IS_INITIATOR(ctx)) { releaseInitiatorContext(&ctx->initiatorCtx); } else { +#ifdef GSSEAP_ENABLE_ACCEPTOR releaseAcceptorContext(&ctx->acceptorCtx); +#endif } krb5_free_keyblock_contents(krbContext, &ctx->rfc3961Key);