From 5316923f6bc4f364f9c5b831b9fa363157e6bf24 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Wed, 12 Feb 2025 14:48:38 +0100 Subject: [PATCH] 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. --- src/ssl_ckch.c | 3 +++ 1 file changed, 3 insertions(+) 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);