mirror of
https://github.com/haproxy/haproxy.git
synced 2026-07-14 19:43:29 -04:00
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
0330011acf
commit
82f927817e
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue