projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't claim that contributors need ssh
[privoxy.git]
/
parsers.c
diff --git
a/parsers.c
b/parsers.c
index
2812161
..
b65474c
100644
(file)
--- a/
parsers.c
+++ b/
parsers.c
@@
-4,7
+4,7
@@
*
* Purpose : Declares functions to parse/crunch headers and pages.
*
*
* Purpose : Declares functions to parse/crunch headers and pages.
*
- * Copyright : Written by and Copyright (C) 2001-20
17
the
+ * Copyright : Written by and Copyright (C) 2001-20
20
the
* Privoxy team. https://www.privoxy.org/
*
* Based on the Internet Junkbuster originally written
* Privoxy team. https://www.privoxy.org/
*
* Based on the Internet Junkbuster originally written
@@
-633,6
+633,7
@@
jb_err decompress_iob(struct client_state *csp)
if (bufsize >= csp->config->buffer_limit)
{
log_error(LOG_LEVEL_ERROR, "Buffer limit reached while decompressing iob");
if (bufsize >= csp->config->buffer_limit)
{
log_error(LOG_LEVEL_ERROR, "Buffer limit reached while decompressing iob");
+ freez(buf);
return JB_ERR_MEMORY;
}
return JB_ERR_MEMORY;
}
@@
-1215,6
+1216,13
@@
jb_err sed_https(struct client_state *csp)
csp->headers->first = csp->https_headers->first;
csp->headers->last = csp->https_headers->last;
csp->headers->first = csp->https_headers->first;
csp->headers->last = csp->https_headers->last;
+ /*
+ * Start with fresh tags. Already exising tags may
+ * be set again. This is necessary to overrule
+ * URL-based patterns.
+ */
+ destroy_list(csp->tags);
+
/*
* We want client header filters and taggers
* so temporarly remove the flag.
/*
* We want client header filters and taggers
* so temporarly remove the flag.