From ec6182134a54004b5d159eb58fafbea88ad4b5d7 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Tue, 29 Sep 2020 12:37:27 +0200 Subject: [PATCH] process_encrypted_request(): If we received no data after a CONNECT request, don't report it as a parse error --- jcc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jcc.c b/jcc.c index 2455ec0c..bb57dedb 100644 --- a/jcc.c +++ b/jcc.c @@ -2292,7 +2292,8 @@ static jb_err process_encrypted_request(struct client_state *csp) err = receive_encrypted_request(csp); if (err != JB_ERR_OK) { - if (csp->client_iob->cur == NULL) + if (csp->client_iob->cur == NULL || + csp->client_iob->cur == csp->client_iob->eod) { /* * We did not receive any data, most likely because the -- 2.39.2