chat(): Remove pointless NULL-pointer check
authorFabian Keil <fk@fabiankeil.de>
Fri, 11 Sep 2020 10:02:10 +0000 (12:02 +0200)
committerFabian Keil <fk@fabiankeil.de>
Fri, 11 Sep 2020 14:35:39 +0000 (16:35 +0200)
jcc.c

diff --git a/jcc.c b/jcc.c
index e872a39..5f1a43b 100644 (file)
--- 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
    /*