From: Fabian Keil <fk@fabiankeil.de>
Date: Tue, 3 Mar 2020 11:26:33 +0000 (+0100)
Subject: process_encrypted_request(): Don't send an error response in case of unsupported... 
X-Git-Tag: v_3_0_29~440
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/user-manual/quickstart.html?a=commitdiff_plain;h=10cf23701356145145e42f153e6719866b935885;p=privoxy.git

process_encrypted_request(): Don't send an error response in case of unsupported protocols

client_protocol_is_unsupported() already takes care of that.

Sponsored by: Robert Klemme
---

diff --git a/jcc.c b/jcc.c
index dbb49790..99c423c5 100644
--- a/jcc.c
+++ b/jcc.c
@@ -2275,8 +2275,11 @@ static jb_err process_encrypted_request(struct client_state *csp)
 
    if (client_protocol_is_unsupported(csp, request_line))
    {
-      ssl_send_data(&(csp->mbedtls_client_attr.ssl),
-         (const unsigned char *)CHEADER, strlen(CHEADER));
+      /*
+       * If the protocol is unsupported we're done here.
+       * client_protocol_is_unsupported() took care of sending
+       * the error response and logging the error message.
+       */
       return JB_ERR_PARSE;
    }