Do not display a CT log error message if CT validation is disabled
[openssl.git] / ssl / ssl_lib.c
index f6bf42d1e5c2742a828508a9d94ed6d2f6456071..2fa323a41d9560813892e3bb3557577562ce1401 100644 (file)
@@ -4143,11 +4143,7 @@ end:
 
 int SSL_CTX_set_default_ctlog_list_file(SSL_CTX *ctx)
 {
-    int ret = CTLOG_STORE_load_default_file(ctx->ctlog_store);
-
-    /* Clear any errors if the default file does not exist */
-    ERR_clear_error();
-    return ret;
+    return CTLOG_STORE_load_default_file(ctx->ctlog_store);
 }
 
 int SSL_CTX_set_ctlog_list_file(SSL_CTX *ctx, const char *path)