commit ac9751f: [Fix] Fix race condition in watcher handler

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Oct 8 08:07:09 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-10-08 09:01:30 +0100
URL: https://github.com/rspamd/rspamd/commit/ac9751f06a1fd97d264772b294c4c4de3728fee9 (HEAD -> master)

[Fix] Fix race condition in watcher handler

---
 src/fuzzy_storage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c
index d0d69c83c..f7aec3e27 100644
--- a/src/fuzzy_storage.c
+++ b/src/fuzzy_storage.c
@@ -517,8 +517,8 @@ rspamd_fuzzy_reply_io (EV_P_ ev_io *w, int revents)
 {
 	struct fuzzy_session *session = (struct fuzzy_session *)w->data;
 
-	rspamd_fuzzy_write_reply (session);
 	ev_io_stop (EV_A_ w);
+	rspamd_fuzzy_write_reply (session);
 	REF_RELEASE (session);
 }
 


More information about the Commits mailing list