diff options
author | ElzorFox <elzorfox@ya.ru> | 2018-07-26 20:35:39 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2018-07-26 20:35:39 +0500 |
commit | 840ad4f0021d0aa3398fd0c027e84029bdf0e903 (patch) | |
tree | 319fcecb785bb831e4b5ebc5e5d6f85ebf6a479a /protocols | |
parent | 1c669484c03d93c5eb489d51a018c7dca7b1a5fc (diff) |
VKontakte: crash fix
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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;
}
|