aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-30 17:02:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-30 17:02:52 +0100
commit1906702b4f78171b56a12e2abd3bda074de5ed52 (patch)
tree53036ab9f7f0f516b8a41bfa2925b983ee2b9b63
parentddb45e9d60b7174fe5fb1ca8ab1478b4ad0fdf03 (diff)
downloadrspamd-1906702b4f78171b56a12e2abd3bda074de5ed52.tar.gz
rspamd-1906702b4f78171b56a12e2abd3bda074de5ed52.zip
Fix race condition for watcher removal.
-rw-r--r--src/lua/lua_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c
index 427a23827..e87da02b1 100644
--- a/src/lua/lua_http.c
+++ b/src/lua/lua_http.c
@@ -123,8 +123,8 @@ static void
lua_http_maybe_free (struct lua_http_cbdata *cbd)
{
if (cbd->session) {
- rspamd_session_remove_event (cbd->session, lua_http_fin, cbd);
rspamd_session_watcher_pop (cbd->session, cbd->w);
+ rspamd_session_remove_event (cbd->session, lua_http_fin, cbd);
}
else {
lua_http_fin (cbd);