From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 18 Mar 2012 13:47:33 +0000 (+0000)
Subject: Fix an error message in get_last_url() nobody is supposed to see
X-Git-Tag: v_3_0_20~379
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/static/@default-cgi@show-url-info?a=commitdiff_plain;h=b77f124709dbf693508cd10e34b2e21b52f7a114;p=privoxy.git

Fix an error message in get_last_url() nobody is supposed to see

Reported by Matthew Fischer in #3507301.
---

diff --git a/filters.c b/filters.c
index e9d724c7..0b643a39 100644
--- a/filters.c
+++ b/filters.c
@@ -1,4 +1,4 @@
-const char filters_rcs[] = "$Id: filters.c,v 1.169 2012/03/09 16:24:36 fabiankeil Exp $";
+const char filters_rcs[] = "$Id: filters.c,v 1.170 2012/03/09 17:55:50 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/filters.c,v $
@@ -1109,7 +1109,8 @@ char *get_last_url(char *subject, const char *redirect_mode)
 
       if (NULL == url_segments)
       {
-         log_error(LOG_LEVEL_ERROR, "Out of memory while decoding URL: %s", new_url);
+         log_error(LOG_LEVEL_ERROR,
+            "Out of memory while decoding URL: %s", subject);
          freez(subject);
          return NULL;
       }