aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-08-04 20:41:05 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-08-04 20:41:05 +0400
commit028adcf6764fd816ad69a516e7873005ad4bee24 (patch)
tree7604a4388c0644cad779d28292e85bba55fa318e /src/protocol.c
parent3f96e6a7a317e70b85b32de4aa06681c11d79006 (diff)
downloadrspamd-028adcf6764fd816ad69a516e7873005ad4bee24.tar.gz
rspamd-028adcf6764fd816ad69a516e7873005ad4bee24.zip
Fix access to already freed memory.
Remove assert.
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c
index 84eb050c1..4e15a47d8 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -815,6 +815,7 @@ metric_symbols_callback_rspamc (gpointer key, gpointer value, void *user_data)
if (cd->task->cmd == CMD_SYMBOLS) {
if (! rspamd_dispatcher_write (task->dispatcher, outbuf, r, FALSE, FALSE)) {
cd->alive = FALSE;
+ return;
}
}
cd->report_offset += rspamd_snprintf (cd->report_buf + cd->report_offset, cd->report_size - cd->report_offset,