]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Init milter watcher
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 22 Jun 2019 08:50:26 +0000 (09:50 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 22 Jun 2019 09:57:29 +0000 (10:57 +0100)
src/libserver/milter.c

index 897938df026ee940807d293b08439bf38349d6c2..c06ad7a99f3dc1d736111d99b7fd012d9fe4c1c3 100644 (file)
@@ -1100,6 +1100,9 @@ rspamd_milter_handle_socket (gint fd, ev_tstamp timeout,
        priv->quarantine_on_reject = milter_ctx->quarantine_on_reject;
        priv->ev.timeout = timeout;
 
+       rspamd_ev_watcher_init (&priv->ev, fd, EV_READ|EV_WRITE,
+                       rspamd_milter_io_handler, session);
+
        if (pool) {
                /* Copy tag */
                memcpy (priv->pool->tag.uid, pool->tag.uid, sizeof (pool->tag.uid));