X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=jcc.c;h=614c7f188202ce9a900325954abe0683fd9fe055;hb=12c8dc0f934964557294fcee2ea4b5444754e032;hp=dbb497909633765c1139289a5dffa0df47af0f58;hpb=9b2f19e5b2787e062ca6fe992ce250c5149497f8;p=privoxy.git diff --git a/jcc.c b/jcc.c index dbb49790..614c7f18 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; } @@ -3773,6 +3776,9 @@ static void chat(struct client_state *csp) * client body in the buffer (if there is one) and to * continue parsing the bytes that follow. */ +#ifdef FEATURE_HTTPS_INSPECTION + close_client_ssl_connection(csp); +#endif drain_and_close_socket(csp->cfd); csp->cfd = JB_INVALID_SOCKET;