From: William Lallemand Date: Wed, 12 Feb 2025 13:48:38 +0000 (+0100) Subject: MINOR: ssl/ckch: return from ckch_conf_clean() when conf is NULL X-Git-Tag: v3.2-dev6~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=82f927817ea9eef33cc8dcc4469204ad11d0d504;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c index 0cbc984dc..90887c55b 100644 --- a/src/ssl_ckch.c +++ b/src/ssl_ckch.c @@ -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);