BUG/MINOR: acme: acme_ctx_destroy() leaks auth->dns

365a696 ("MINOR: acme: emit a log for DNS-01 challenge response")
introduces the auth->dns member which is istdup(). But this member is
never free, instead auth->token was freed twice by mistake.

Must be backported to 3.2.
This commit is contained in:
William Lallemand 2026-02-21 16:03:17 +01:00
parent 0f95e73032
commit e63722fed4

View File

@ -878,7 +878,7 @@ static void acme_ctx_destroy(struct acme_ctx *ctx)
istfree(&auth->auth);
istfree(&auth->chall);
istfree(&auth->token);
istfree(&auth->token);
istfree(&auth->dns);
next = auth->next;
free(auth);
auth = next;