Don't free the hx509ctx
otherwise we crash if we fail to init certs (e.g. due to missing smartcard). Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:

committed by
Love Hornquist Astrand

parent
ecf9e3c989
commit
33f3be4d52
0
autogen.sh
Normal file → Executable file
0
autogen.sh
Normal file → Executable file
@@ -1959,7 +1959,6 @@ _krb5_pk_load_id(krb5_context context,
|
||||
hx509_certs_free(&id->anchors);
|
||||
hx509_certs_free(&id->certpool);
|
||||
hx509_revoke_free(&id->revokectx);
|
||||
hx509_context_free(&context->hx509ctx);
|
||||
free(id);
|
||||
} else
|
||||
*ret_id = id;
|
||||
|
Reference in New Issue
Block a user