From: Fabian Keil <fk@fabiankeil.de>
Date: Fri, 11 Sep 2020 10:02:10 +0000 (+0200)
Subject: chat(): Remove pointless NULL-pointer check
X-Git-Tag: v_3_0_29~146
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@edit-actions-add-url-form?a=commitdiff_plain;h=625a2b05af9096c17a705df8b8681db95e862ee3;p=privoxy.git

chat(): Remove pointless NULL-pointer check
---

diff --git a/jcc.c b/jcc.c
index e872a39c..5f1a43bb 100644
--- a/jcc.c
+++ b/jcc.c
@@ -3665,12 +3665,6 @@ static void chat(struct client_state *csp)
 
    /* decide how to route the HTTP request */
    fwd = forward_url(csp, http);
-   if (NULL == fwd)
-   {
-      log_error(LOG_LEVEL_FATAL, "gateway spec is NULL!?!?  This can't happen!");
-      /* Never get here - LOG_LEVEL_FATAL causes program exit */
-      return;
-   }
 
 #ifdef FEATURE_HTTPS_INSPECTION
    /*