summaryrefslogtreecommitdiff
path: root/plugins/StopSpamPlus
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-25 22:23:01 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-25 22:23:08 +0300
commitd16d11acb36aebc4e63c4dc8c8f41806bf3d88a9 (patch)
tree34b711dc982b334e920ff4585ab316f179b519c8 /plugins/StopSpamPlus
parented09f632fdb8aca2c7ddcaf240913cb1a4bd67fc (diff)
fixes #1203 (possible crash in StopSpam+)
Diffstat (limited to 'plugins/StopSpamPlus')
-rw-r--r--plugins/StopSpamPlus/src/events.cpp2
1 files changed, 1 insertions, 1 deletions
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