commit a0f2a04: [Minor] Init milter watcher

Vsevolod Stakhov vsevolod at highsecure.ru
Sat Jun 22 12:15:00 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-06-22 09:50:26 +0100
URL: https://github.com/rspamd/rspamd/commit/a0f2a047af123e227934b6777065c98438024dde

[Minor] Init milter watcher

---
 src/libserver/milter.c | 3 +++
 1 file changed, 3 insertions(+)

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));


More information about the Commits mailing list