Commit 0c6ea565 authored by Rob Percival's avatar Rob Percival Committed by Rich Salz
Browse files

Handle missing "enabled_logs" line in CT log file



Reviewed-by: default avatarBen Laurie <ben@openssl.org>
Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent a930afb6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -245,6 +245,12 @@ int CTLOG_STORE_load_file(CTLOG_STORE *store, const char *file)
    }

    enabled_logs = NCONF_get_string(load_ctx->conf, NULL, "enabled_logs");
    if (enabled_logs == NULL) {
        ret = 0;
        CTerr(CT_F_CTLOG_STORE_LOAD_FILE, CT_R_LOG_CONF_INVALID);
        goto end;
    }

    ret = CONF_parse_list(enabled_logs, ',', 1, ctlog_store_load_log, load_ctx);
    if (ret == 1 && load_ctx->invalid_log_entries > 0) {
        ret = 0;