diff options
Diffstat (limited to 'protocols/SkypeWeb/src/skype_messages.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_messages.cpp | 6 |
1 files changed, 5 insertions, 1 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";
|