commit d8113e4545c9ddf6cb092548df6a49306aba4ea4
parent ff19ce76521ef34ba5a674f0a51c1092ab4eea69
Author: Joris Vink <joris@coders.se>
Date: Sun, 19 Dec 2021 00:14:33 +0100
Reset dom->acme_cert upon clearing.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/worker.c b/src/worker.c
@@ -1000,7 +1000,10 @@ worker_keymgr_response(struct kore_msg *msg, const void *data)
case KORE_ACME_CHALLENGE_CLEAR_CERT:
dom->acme_cert_len = 0;
dom->acme_challenge = 0;
+
kore_free(dom->acme_cert);
+ dom->acme_cert = NULL;
+
kore_log(LOG_NOTICE, "[%s] tls-alpn-01 challenge disabled",
dom->domain);
break;