MINOR: ssl/ckch: return from ckch_conf_clean() when conf is NULL

ckch_conf_clean() mustn't be executed when the argument is NULL, this
will keep the API more consistant like any free() function.
This commit is contained in:
William Lallemand 2025-02-12 14:48:38 +01:00
parent 5821eb062a
commit 5316923f6b

View File

@ -4841,6 +4841,9 @@ out:
/* freeing the content of a ckch_conf structure */
void ckch_conf_clean(struct ckch_conf *conf)
{
if (!conf)
return;
free(conf->crt);
free(conf->key);
free(conf->ocsp);