diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-22 09:50:26 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-22 10:57:29 +0100 |
commit | a0f2a047af123e227934b6777065c98438024dde (patch) | |
tree | 7122968d06685d503f5516c6f7291abf16e9907a /src/libserver/milter.c | |
parent | 2c07a3a16133003f278fd19b023b5cdd41ad41d7 (diff) | |
download | rspamd-a0f2a047af123e227934b6777065c98438024dde.tar.gz rspamd-a0f2a047af123e227934b6777065c98438024dde.zip |
[Minor] Init milter watcher
Diffstat (limited to 'src/libserver/milter.c')
-rw-r--r-- | src/libserver/milter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/milter.c b/src/libserver/milter.c index 897938df0..c06ad7a99 100644 --- a/src/libserver/milter.c +++ b/src/libserver/milter.c @@ -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)); |