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:
Jeffrey Altman
2020-06-28 11:02:32 -04:00
committed by Jeffrey Altman
parent ed24c41973
commit bbe5bf669b

View File

@@ -660,8 +660,7 @@ krb5_free_context(krb5_context context)
krb5_set_send_to_kdc_func(context, NULL, NULL);
#ifdef PKINIT
if (context->hx509ctx)
hx509_context_free(&context->hx509ctx);
hx509_context_free(&context->hx509ctx);
#endif
if (context->flags & KRB5_CTX_F_SOCKETS_INITIALIZED) {