summaryrefslogtreecommitdiff
path: root/protocols/VKontakte
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2015-05-30 09:19:58 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2015-05-30 09:19:58 +0000
commit3f997007f5bea3960179e920ec258f511d5ebf78 (patch)
treead432fccd6d3f2dced88520ffab2d52e13407647 /protocols/VKontakte
parent5d3a568cb6011dbfc1e56d8c6bf86ef5d8b0299f (diff)
VKontakte: crashfix in PollUpdates
git-svn-id: http://svn.miranda-ng.org/main/trunk@13906 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r--protocols/VKontakte/src/vk_pollserver.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_pollserver.cpp b/protocols/VKontakte/src/vk_pollserver.cpp
index 350bbf1081..3e9aac2184 100644
--- a/protocols/VKontakte/src/vk_pollserver.cpp
+++ b/protocols/VKontakte/src/vk_pollserver.cpp
@@ -78,6 +78,8 @@ void CVkProto::PollUpdates(const JSONNode &jnUpdates)
const JSONNode &jnChild = (*it).as_array();
switch (jnChild[json_index_t(0)].as_int()) {
case VKPOLL_MSG_DELFLAGS:
+ if (jnChild.size() < 4)
+ break;
msgid = jnChild[1].as_int();
flags = jnChild[2].as_int();
uid = jnChild[3].as_int();