aboutsummaryrefslogtreecommitdiffstats
path: root/src/logger.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-07-19 17:01:17 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-07-19 17:01:17 +0400
commitfd4de5a9277d8d4a75b2258b4e1f8cf20c8e0e1d (patch)
tree7a8ea53e842e815f6add4b2abf267ffcc0c4d549 /src/logger.c
parent6a2422fe75904e8072bdf48502d0245f89e1a0e2 (diff)
downloadrspamd-fd4de5a9277d8d4a75b2258b4e1f8cf20c8e0e1d.tar.gz
rspamd-fd4de5a9277d8d4a75b2258b4e1f8cf20c8e0e1d.zip
Fix coredumps on some specific messages with specific urls.
Fix coredumps while closing log file. Fix parsing of chunked HTTP replies.
Diffstat (limited to 'src/logger.c')
-rw-r--r--src/logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logger.c b/src/logger.c
index db4143ff3..0d9f9c988 100644
--- a/src/logger.c
+++ b/src/logger.c
@@ -185,7 +185,7 @@ close_log (rspamd_logger_t *rspamd_log)
rspamd_snprintf (tmpbuf, sizeof (tmpbuf), "Last message repeated %ud times", rspamd_log->repeats);
rspamd_log->repeats = 0;
if (rspamd_log->saved_message) {
- file_log_function (NULL, rspamd_log->saved_function, rspamd_log->cfg->log_level, rspamd_log->saved_message, TRUE, NULL);
+ file_log_function (NULL, rspamd_log->saved_function, rspamd_log->cfg->log_level, rspamd_log->saved_message, TRUE, rspamd_log);
g_free (rspamd_log->saved_message);
g_free (rspamd_log->saved_function);
rspamd_log->saved_message = NULL;