From 2638d55b61fcbc37693d6e00c98ce3f6c8e671f3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 14 Dec 2015 17:35:42 +0000 Subject: [PATCH] Fix hyperscan command broadcast --- src/libserver/rspamd_control.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libserver/rspamd_control.c b/src/libserver/rspamd_control.c index cd6b7829b..c2ae03820 100644 --- a/src/libserver/rspamd_control.c +++ b/src/libserver/rspamd_control.c @@ -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); } -- 2.39.5