krb5: krb5_free_context unconditionally call hx509_context_free
Its safe to call hx509_context_free() with a NULL context. Change-Id: I47e3aa1b57a2008dbfcd8d6de1b9c6ded84414db
This commit is contained in:

committed by
Jeffrey Altman

parent
ed24c41973
commit
bbe5bf669b
@@ -660,8 +660,7 @@ 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
|
||||||
if (context->hx509ctx)
|
hx509_context_free(&context->hx509ctx);
|
||||||
hx509_context_free(&context->hx509ctx);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (context->flags & KRB5_CTX_F_SOCKETS_INITIALIZED) {
|
if (context->flags & KRB5_CTX_F_SOCKETS_INITIALIZED) {
|
||||||
|
Reference in New Issue
Block a user