diff --git a/src/cfgparse.c b/src/cfgparse.c index e9876f859..1c9b430c5 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -8850,6 +8850,13 @@ out_uri_auth_compat: LIST_DEL(&bind_conf->keys_ref->list); free(bind_conf->keys_ref); } + bind_conf->keys_ref = NULL; + bind_conf->crl_file = NULL; + bind_conf->ecdhe = NULL; + bind_conf->ciphers = NULL; + bind_conf->ca_sign_pass = NULL; + bind_conf->ca_sign_file = NULL; + bind_conf->ca_file = NULL; #endif /* USE_OPENSSL */ } diff --git a/src/ssl_sock.c b/src/ssl_sock.c index b681d639e..6739fbc9f 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -3334,6 +3334,8 @@ ssl_sock_free_ca(struct bind_conf *bind_conf) EVP_PKEY_free(bind_conf->ca_sign_pkey); if (bind_conf->ca_sign_cert) X509_free(bind_conf->ca_sign_cert); + bind_conf->ca_sign_pkey = NULL; + bind_conf->ca_sign_cert = NULL; } /*