diff options
Diffstat (limited to 'src/protocol.c')
-rw-r--r-- | src/protocol.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c index 999de65ab..1b349b49e 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -508,6 +508,9 @@ show_url_header (struct worker_task *task) } cur = g_list_next (cur); } + if (r == 0) { + return TRUE; + } return rspamd_dispatcher_write (task->dispatcher, outbuf, r, FALSE, FALSE); } @@ -720,6 +723,10 @@ show_messages (struct worker_task *task) cur = g_list_next (cur); } + if (r == 0) { + return TRUE; + } + return rspamd_dispatcher_write (task->dispatcher, outbuf, r, FALSE, FALSE); } |