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:
parent
5821eb062a
commit
5316923f6b
@ -4841,6 +4841,9 @@ out:
|
|||||||
/* freeing the content of a ckch_conf structure */
|
/* freeing the content of a ckch_conf structure */
|
||||||
void ckch_conf_clean(struct ckch_conf *conf)
|
void ckch_conf_clean(struct ckch_conf *conf)
|
||||||
{
|
{
|
||||||
|
if (!conf)
|
||||||
|
return;
|
||||||
|
|
||||||
free(conf->crt);
|
free(conf->crt);
|
||||||
free(conf->key);
|
free(conf->key);
|
||||||
free(conf->ocsp);
|
free(conf->ocsp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user