Blob Blame Raw
From: Vlad Patrascu <vladp@opensips.org>
Date: Fri, 2 Feb 2018 16:36:48 +0200
Subject: [PATCH] event_flatstore: fix possible crash when subscribing

(cherry picked from commit c4d113a927890bc09b00e5263f44329c4d71099a)

diff --git a/modules/event_flatstore/event_flatstore.c b/modules/event_flatstore/event_flatstore.c
index 0ad2a2879..3ca3a7964 100644
--- a/modules/event_flatstore/event_flatstore.c
+++ b/modules/event_flatstore/event_flatstore.c
@@ -164,6 +164,7 @@ static int mod_init(void) {
 	}
 
 	list_deleted_files = (struct flat_deleted**)(list_files + 1);
+	*list_deleted_files = NULL;
 
 	global_lock = lock_alloc();