Reset dom->acme_cert upon clearing.

This commit is contained in:
Joris Vink 2021-12-19 00:14:33 +01:00
parent ff19ce7652
commit d8113e4545
1 changed files with 3 additions and 0 deletions

View File

@ -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;