Only free hx509ctx if its actually allocated
This commit is contained in:
@@ -535,7 +535,8 @@ krb5_free_context(krb5_context context)
|
|||||||
krb5_set_send_to_kdc_func(context, NULL, NULL);
|
krb5_set_send_to_kdc_func(context, NULL, NULL);
|
||||||
|
|
||||||
#ifdef PKINIT
|
#ifdef PKINIT
|
||||||
hx509_context_free(&context->hx509ctx);
|
if (context->hx509ctx)
|
||||||
|
hx509_context_free(&context->hx509ctx);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
HEIMDAL_MUTEX_destroy(context->mutex);
|
HEIMDAL_MUTEX_destroy(context->mutex);
|
||||||
|
Reference in New Issue
Block a user