ssl_send_certificate_error(): Update the LOG_LEVEL_CLF message to use status code 403
authorFabian Keil <fk@fabiankeil.de>
Sun, 24 Jan 2021 11:00:45 +0000 (12:00 +0100)
committerFabian Keil <fk@fabiankeil.de>
Sun, 24 Jan 2021 12:38:14 +0000 (13:38 +0100)
Follow-up for f048c3c93d1.

ssl_common.c

index 6ed067f..e46747e 100644 (file)
@@ -414,7 +414,7 @@ extern void ssl_send_certificate_error(struct client_state *csp)
 
    log_error(LOG_LEVEL_CRUNCH, "Certificate error: %s: https://%s%s",
       reason, csp->http->hostport, csp->http->path);
 
    log_error(LOG_LEVEL_CRUNCH, "Certificate error: %s: https://%s%s",
       reason, csp->http->hostport, csp->http->path);
-   log_error(LOG_LEVEL_CLF, "%s - - [%T] \"%s https://%s%s %s\" 200 %lu",
+   log_error(LOG_LEVEL_CLF, "%s - - [%T] \"%s https://%s%s %s\" 403 %lu",
       csp->ip_addr_str, csp->http->gpc, csp->http->hostport, csp->http->path,
       csp->http->version, message_len-head_length);
 
       csp->ip_addr_str, csp->http->gpc, csp->http->hostport, csp->http->path,
       csp->http->version, message_len-head_length);