From: William Lallemand Date: Wed, 30 Apr 2025 15:17:58 +0000 (+0200) Subject: MINOR: acme: acme_ctx_destroy() returns upon NULL X-Git-Tag: v3.2-dev13~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8a52703344168692d1fef315abec32ea3c68194;p=thirdparty%2Fhaproxy.git MINOR: acme: acme_ctx_destroy() returns upon NULL acme_ctx_destroy() returns when its argument is NULL. --- diff --git a/src/acme.c b/src/acme.c index 6897952b2..d7dbd3a8a 100644 --- a/src/acme.c +++ b/src/acme.c @@ -591,6 +591,9 @@ static void acme_ctx_destroy(struct acme_ctx *ctx) { struct acme_auth *auth; + if (!ctx) + return; + istfree(&ctx->ressources.newNonce); istfree(&ctx->ressources.newAccount); istfree(&ctx->ressources.newOrder);