From: Fabian Keil <fk@fabiankeil.de>
Date: Tue, 10 Nov 2020 11:22:04 +0000 (+0100)
Subject: Plug another memory leak in cgi_show_status()
X-Git-Tag: v_3_0_29~31
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/coding.html?a=commitdiff_plain;h=064eac5fd0f693e94ec8b3a64d1d91e8fb7e8e66;p=privoxy.git

Plug another memory leak in cgi_show_status()

CID 305233
---

diff --git a/cgisimple.c b/cgisimple.c
index 88f1c158..8473391c 100644
--- a/cgisimple.c
+++ b/cgisimple.c
@@ -1375,9 +1375,9 @@ jb_err cgi_show_status(struct client_state *csp,
          if (!err) err = string_append(&s, "</td></tr>\n");
       }
    }
-   if (*s != '\0')
+   if (!err && *s != '\0')
    {
-      if (!err) err = map(exports, "re-filter-filenames", 1, s, 0);
+      err = map(exports, "re-filter-filenames", 1, s, 0);
    }
    else
    {