diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-25 22:23:01 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-25 22:23:08 +0300 |
commit | d16d11acb36aebc4e63c4dc8c8f41806bf3d88a9 (patch) | |
tree | 34b711dc982b334e920ff4585ab316f179b519c8 /plugins | |
parent | ed09f632fdb8aca2c7ddcaf240913cb1a4bd67fc (diff) |
fixes #1203 (possible crash in StopSpam+)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/StopSpamPlus/src/events.cpp | 2 |
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
|