]> source.dussan.org Git - rspamd.git/commitdiff
Fix hyperscan command broadcast
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 Dec 2015 17:35:42 +0000 (17:35 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 Dec 2015 17:35:42 +0000 (17:35 +0000)
src/libserver/rspamd_control.c

index cd6b7829b8ce10ce57797367b6dd67e029e5325f..c2ae038208da77cc165aa0f33c3891f367ca67d8 100644 (file)
@@ -607,8 +607,10 @@ static void
 rspamd_control_hs_io_handler (gint fd, short what, gpointer ud)
 {
        struct rspamd_control_reply_elt *elt = ud;
+       struct rspamd_control_reply rep;
 
        /* At this point we just ignore replies from the workers */
+       (void)read (fd, &rep, sizeof (rep));
        event_del (&elt->io_ev);
        g_slice_free1 (sizeof (*elt), elt);
 }