X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=src%2Fverify.c;h=5248dd6cd243dff33609066f3da00c0c3a6bf5ce;hb=64bfebde76d568808b6fa8a8d09b4b5afe13dc15;hp=8328432b5e27e0174590c0c69cb97e92fc36c608;hpb=2a2a0a1691c26cfdbb3d248efe485f1a8bbf7e5b;p=tlsproxy%2Ftlsproxy.git diff --git a/src/verify.c b/src/verify.c index 8328432..5248dd6 100644 --- a/src/verify.c +++ b/src/verify.c @@ -176,9 +176,15 @@ int server_certificate_path(FILE **file, const char *hostname, /* Open the stored certificate file. */ *file = fopen(path, "rb"); if (NULL == *file) { - LOG(global_passthrough_unknown ? LOG_DEBUG : LOG_WARNING, - "server_certificate_path(): failed to open '%s': %s", - path, strerror(errno)); + if (global_passthrough_unknown) { + LOG(LOG_DEBUG, + "server_certificate_path(): failed to open '%s': %s", + path, strerror(errno)); + } else { + LOG(LOG_WARNING, + "server_certificate_path(): failed to open '%s': %s", + path, strerror(errno)); + } /* Couldn't open the file, special case. */ return -2; }