RFC 2616 is obsolete, update a comment in redirect_url()
[privoxy.git] / parsers.c
index 29d52e4..6e66861 100644 (file)
--- a/parsers.c
+++ b/parsers.c
@@ -1,4 +1,4 @@
-const char parsers_rcs[] = "$Id: parsers.c,v 1.282 2013/12/24 13:34:45 fabiankeil Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 1.284 2014/02/10 14:42:42 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/parsers.c,v $
@@ -1277,7 +1277,7 @@ jb_err update_server_headers(struct client_state *csp)
  *********************************************************************/
 static jb_err header_tagger(struct client_state *csp, char *header)
 {
-   int wanted_filter_type;
+   enum filter_type wanted_filter_type;
    int multi_action_index;
    pcrs_job *job;
 
@@ -1455,7 +1455,7 @@ static jb_err filter_header(struct client_state *csp, char **header)
    struct re_filterfile_spec *b;
    struct list_entry *filtername;
 
-   int wanted_filter_type;
+   enum filter_type wanted_filter_type;
    int multi_action_index;
 
    if (csp->flags & CSP_FLAG_NO_FILTERING)
@@ -1758,6 +1758,7 @@ static jb_err client_keep_alive(struct client_state *csp, char **header)
          log_error(LOG_LEVEL_HEADER,
             "Couldn't parse: '%s'. Using default timeout %u",
             *header, csp->config->keep_alive_timeout);
+         freez(*header);
 
          return JB_ERR_OK;
       }
@@ -1776,6 +1777,7 @@ static jb_err client_keep_alive(struct client_state *csp, char **header)
       log_error(LOG_LEVEL_HEADER,
          "Client keep-alive timeout is %u. Sticking with %u.",
          keep_alive_timeout, csp->config->keep_alive_timeout);
+      freez(*header);
    }
 
    return JB_ERR_OK;