summaryrefslogtreecommitdiffstats
path: root/src/libserver/events.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-05-01 15:20:06 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-05-01 15:20:06 +0100
commit112e46f516bdebea70e970c67aa660480157a683 (patch)
treebd6c6a256b1c4a99892730e6be8274aa17018195 /src/libserver/events.c
parentb8566c7685333af8277d1cb919ae0e5f1d2ed3cf (diff)
downloadrspamd-112e46f516bdebea70e970c67aa660480157a683.tar.gz
rspamd-112e46f516bdebea70e970c67aa660480157a683.zip
Fix race condition in DNS events.
Diffstat (limited to 'src/libserver/events.c')
-rw-r--r--src/libserver/events.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/events.c b/src/libserver/events.c
index 85843fd05..48dcb3444 100644
--- a/src/libserver/events.c
+++ b/src/libserver/events.c
@@ -154,6 +154,9 @@ rspamd_session_destroy (gpointer k, gpointer v, gpointer unused)
struct rspamd_async_event *ev = v;
/* Call event's finalizer */
+ msg_debug ("removed event on destroy: %p, subsystem: %s", ev->user_data,
+ g_quark_to_string (ev->subsystem));
+
if (ev->fin != NULL) {
ev->fin (ev->user_data);
}