avoid calling hx509_free_cert() twice
in krb5_pk_enterprise_cert() pkinit.c, hx509_free_cert() could be called twice. Change-Id: I9911d38f1f926721dca2753c6296f26c66c474ad
This commit is contained in:

committed by
Jeffrey Altman

parent
52556b1b74
commit
844fa0ad5a
@@ -2619,10 +2619,8 @@ krb5_pk_enterprise_cert(krb5_context context,
|
||||
|
||||
if (res) {
|
||||
ret = hx509_certs_init(context->hx509ctx, "MEMORY:", 0, NULL, res);
|
||||
if (ret) {
|
||||
hx509_cert_free(cert);
|
||||
if (ret)
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret = hx509_certs_add(context->hx509ctx, *res, cert);
|
||||
if (ret) {
|
||||
|
Reference in New Issue
Block a user