diff options
-rw-r--r-- | protocols/SkypeWeb/src/skype_messages.cpp | 6 | ||||
-rw-r--r-- | protocols/SkypeWeb/src/skype_polling.cpp | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp index 53ca7542ba..05b6c7b35d 100644 --- a/protocols/SkypeWeb/src/skype_messages.cpp +++ b/protocols/SkypeWeb/src/skype_messages.cpp @@ -128,7 +128,11 @@ void CSkypeProto::OnMessageSent(const NETLIBHTTPREQUEST *response, void *arg) MCONTACT hContact = param->hContact;
HANDLE hMessage = param->hMessage;
delete param;
-
+ if (response == NULL)
+ {
+ ProtoBroadcastAck(hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, hMessage, (LPARAM)"Response = NULL");
+ return;
+ }
if (response->resultCode != 200 && response->resultCode != 201)
{
CMStringA error = "Unknown error";
diff --git a/protocols/SkypeWeb/src/skype_polling.cpp b/protocols/SkypeWeb/src/skype_polling.cpp index a9d4efd44d..a426848a12 100644 --- a/protocols/SkypeWeb/src/skype_polling.cpp +++ b/protocols/SkypeWeb/src/skype_polling.cpp @@ -5,8 +5,7 @@ void CSkypeProto::ParsePollData(JSONNODE *data)
{
debugLogA("CSkypeProto::ParsePollData");
- JSONNODE *node;
- node = json_get(data, "eventMessages");
+ JSONNODE *node = json_get(data, "eventMessages");
if (node != NULL)
{
JSONNODE *messages = json_as_array(node);
|