BUG/MINOR: ssl: Memory leak of AUTHORITY_KEYID struct when loading issuer

When calling ssl_get0_issuer_chain, if akid is not NULL but its keyid
is, then the AUTHORITY_KEYID is not freed.

This patch can be backported to all stable branches.
This commit is contained in:
Remi Tricot-Le Breton 2022-11-03 15:16:48 +01:00 committed by William Lallemand
parent a2c21db155
commit 1621dc1cc5

View file

@ -7231,8 +7231,8 @@ int ssl_load_global_issuer_from_BIO(BIO *in, char *fp, char **err)
break;
}
}
AUTHORITY_KEYID_free(akid);
}
AUTHORITY_KEYID_free(akid);
return issuer;
}