From b8a52703344168692d1fef315abec32ea3c68194 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Wed, 30 Apr 2025 17:17:58 +0200 Subject: [PATCH] MINOR: acme: acme_ctx_destroy() returns upon NULL acme_ctx_destroy() returns when its argument is NULL. --- src/acme.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.47.2