projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FAQ: Fix invalid syntax added in r2.134
[privoxy.git]
/
loaders.c
diff --git
a/loaders.c
b/loaders.c
index
2c84b32
..
135b208
100644
(file)
--- a/
loaders.c
+++ b/
loaders.c
@@
-1,4
+1,4
@@
-const char loaders_rcs[] = "$Id: loaders.c,v 1.10
2 2016/02/26 12:30:46
fabiankeil Exp $";
+const char loaders_rcs[] = "$Id: loaders.c,v 1.10
5 2016/05/25 10:50:55
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/loaders.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/loaders.c,v $
@@
-74,7
+74,9
@@
const char loaders_h_rcs[] = LOADERS_H_VERSION;
static struct file_list *current_trustfile = NULL;
#endif /* def FEATURE_TRUST */
static struct file_list *current_trustfile = NULL;
#endif /* def FEATURE_TRUST */
+#ifndef FUZZ
static int load_one_re_filterfile(struct client_state *csp, int fileid);
static int load_one_re_filterfile(struct client_state *csp, int fileid);
+#endif
static struct file_list *current_re_filterfile[MAX_AF_FILES] = {
NULL, NULL, NULL, NULL, NULL,
static struct file_list *current_re_filterfile[MAX_AF_FILES] = {
NULL, NULL, NULL, NULL, NULL,
@@
-182,6
+184,10
@@
unsigned int sweep(void)
last_active->next = client_list->next;
freez(csp->ip_addr_str);
last_active->next = client_list->next;
freez(csp->ip_addr_str);
+#ifdef FEATURE_CLIENT_TAGS
+ freez(csp->client_address);
+#endif
+ freez(csp->listen_addr_str);
freez(csp->client_iob->buf);
freez(csp->iob->buf);
freez(csp->error_message);
freez(csp->client_iob->buf);
freez(csp->iob->buf);
freez(csp->error_message);
@@
-357,6
+363,7
@@
jb_err simple_read_line(FILE *fp, char **dest, int *newline)
for (;;)
{
ch = getc(fp);
for (;;)
{
ch = getc(fp);
+
if (ch == EOF)
{
if (len > 0)
if (ch == EOF)
{
if (len > 0)
@@
-413,6
+420,7
@@
jb_err simple_read_line(FILE *fp, char **dest, int *newline)
}
else if (ch == 0)
{
}
else if (ch == 0)
{
+ /* XXX: Why do we allow this anyway? */
*p = '\0';
*dest = buf;
return JB_ERR_OK;
*p = '\0';
*dest = buf;
return JB_ERR_OK;