From: Fabian Keil <fk@fabiankeil.de>
Date: Sat, 3 May 2025 15:31:09 +0000 (+0200)
Subject: handle_established_connection(): Improve an error message
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/%22javascript:back()/user-manual/@default-cgi@show-url-info?a=commitdiff_plain;h=ee2c1f82d7542edcb573882c4d12274132bf93ee;p=privoxy.git

handle_established_connection(): Improve an error message
---

diff --git a/jcc.c b/jcc.c
index 55a36f52..99aebf0c 100644
--- a/jcc.c
+++ b/jcc.c
@@ -3975,7 +3975,8 @@ static void handle_established_connection(struct client_state *csp)
 
             if (!csp->headers->first->str)
             {
-               log_error(LOG_LEVEL_ERROR, "header search: csp->headers->first->str == NULL, assert will be called");
+               log_error(LOG_LEVEL_ERROR, "Header search failed unexpectedly: "
+                  "csp->headers->first->str == NULL.");
             }
             assert(csp->headers->first->str);