projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If the the response is chunk-encoded, ignore the Content-Length
[privoxy.git]
/
errlog.c
diff --git
a/errlog.c
b/errlog.c
index
969c0bd
..
a9cfb8c
100644
(file)
--- a/
errlog.c
+++ b/
errlog.c
@@
-683,6
+683,10
@@
void log_error(int loglevel, const char *fmt, ...)
#ifdef FUZZ
if (debug == LOG_LEVEL_STFU)
{
#ifdef FUZZ
if (debug == LOG_LEVEL_STFU)
{
+ if (loglevel == LOG_LEVEL_FATAL)
+ {
+ exit(1);
+ }
return;
}
#endif
return;
}
#endif
@@
-815,7
+819,10
@@
void log_error(int loglevel, const char *fmt, ...)
int ret = snprintf(outbuf + length,
log_buffer_size - length - 2, "\\x%.2x", (unsigned char)*sval);
assert(ret == 4);
int ret = snprintf(outbuf + length,
log_buffer_size - length - 2, "\\x%.2x", (unsigned char)*sval);
assert(ret == 4);
- length += 4;
+ if (ret == 4)
+ {
+ length += 4;
+ }
}
sval++;
}
}
sval++;
}