From 840ad4f0021d0aa3398fd0c027e84029bdf0e903 Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Thu, 26 Jul 2018 20:35:39 +0500 Subject: VKontakte: crash fix --- protocols/VKontakte/src/vk_thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/VKontakte/src') diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index 1c39094afd..2690a38c2c 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -187,7 +187,7 @@ void CVkProto::OnOAuthAuthorize(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq return; } - if (reply->resultCode != 200 || !strstr(reply->pData, "form method=\"post\"")) { // something went wrong + if (reply->resultCode != 200 || !reply->pData || !strstr(reply->pData, "form method=\"post\"")) { // something went wrong ConnectionFailed(LOGINERR_NOSERVER); return; } -- cgit v1.2.3