diff options
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index 4942b45b4..3764c96cc 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -305,8 +305,8 @@ lua_http_dns_callback (struct rspamd_dns_reply *reply, gpointer arg) /* Create dispatcher for HTTP protocol */ msec_to_tv (ud->timeout, &tv); - ud->io_dispatcher = rspamd_create_dispatcher (ud->fd, BUFFER_LINE, lua_http_read_cb, NULL, lua_http_err_cb, - &tv, ud); + ud->io_dispatcher = rspamd_create_dispatcher (ud->task->ev_base, ud->fd, BUFFER_LINE, lua_http_read_cb, NULL, + lua_http_err_cb, &tv, ud); /* Write request */ register_async_event (ud->task->s, lua_http_fin, ud, FALSE); |