Skip to content
Snippets Groups Projects
Commit c9a18cc4 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Don't load a cert unless the scfg_t is prepped.

parent d47a2258
No related branches found
No related tags found
No related merge requests found
Pipeline #5041 canceled
......@@ -363,6 +363,10 @@ CRYPT_CONTEXT get_ssl_cert(scfg_t *cfg, char **estr, int *level)
*estr = NULL;
if(!do_cryptInit())
return -1;
if (!cfg->prepped) {
lprintf(LOG_ERR, "TLS only available to prepped configs");
return -1;
}
lock_ssl_cert_write();
SAFEPRINTF2(str,"%s%s",cfg->ctrl_dir,"ssl.cert");
time32_t fd = (time32_t)fdate(str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment