diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Tox/src/tox_contacts.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp index 04d7286524..ac022896ab 100644 --- a/protocols/Tox/src/tox_contacts.cpp +++ b/protocols/Tox/src/tox_contacts.cpp @@ -143,6 +143,11 @@ int CToxProto::OnContactDeleted(MCONTACT hContact, LPARAM lParam) std::vector<uint8_t> id;
if (!db_get(hContact, m_szModuleName, TOX_SETTINGS_ID, &dbv))
{
+ if (dbv.type != DBVT_BLOB)
+ {
+ return 0;
+ }
+
memcpy(&id[0], dbv.pbVal, TOX_CLIENT_ID_SIZE);
db_free(&dbv);
|