From d16d11acb36aebc4e63c4dc8c8f41806bf3d88a9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 25 Mar 2018 22:23:01 +0300 Subject: fixes #1203 (possible crash in StopSpam+) --- plugins/StopSpamPlus/src/events.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/StopSpamPlus') diff --git a/plugins/StopSpamPlus/src/events.cpp b/plugins/StopSpamPlus/src/events.cpp index 684bbcd05b..e8a7f4a7e1 100644 --- a/plugins/StopSpamPlus/src/events.cpp +++ b/plugins/StopSpamPlus/src/events.cpp @@ -52,7 +52,7 @@ int OnDbEventFilterAdd(WPARAM w, LPARAM l) { MCONTACT hContact = (MCONTACT)w; DBEVENTINFO *dbei = (DBEVENTINFO*)l; - if (dbei == nullptr) //fix potential DEP crash + if (dbei == nullptr || dbei->szModule == nullptr) //fix potential DEP crash return 0; // if event is in protocol that is not despammed -- cgit v1.2.3