diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-09-14 19:49:42 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-09-14 19:49:42 +0000 |
commit | 134439511d180795dc79f25dd617a9dcdce8dd29 (patch) | |
tree | eca9f9496392fa320f6ce6b6d24bdfcbdac81188 /protocols/Steam/src/steam_login.cpp | |
parent | dda141f0798b79cfa71e78934ed1b968fcc20f53 (diff) |
Steam: minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15355 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_login.cpp')
-rw-r--r-- | protocols/Steam/src/steam_login.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp index 3b209d97de..771051a68b 100644 --- a/protocols/Steam/src/steam_login.cpp +++ b/protocols/Steam/src/steam_login.cpp @@ -19,6 +19,9 @@ void CSteamProto::OnGotRsaKey(const NETLIBHTTPREQUEST *response) if (!response)
return;
+ if (!response->pData)
+ return;
+
// load rsa key parts
JSONNode root = JSONNode::parse(response->pData);
if (!root)
@@ -81,6 +84,12 @@ void CSteamProto::OnAuthorization(const NETLIBHTTPREQUEST *response) return;
}
+ if (!response->pData)
+ {
+ SetStatus(ID_STATUS_OFFLINE);
+ return;
+ }
+
JSONNode root = JSONNode::parse(response->pData);
if (!root)
{
|