diff options
Diffstat (limited to 'protocols/Steam/src/steam_login.cpp')
-rw-r--r-- | protocols/Steam/src/steam_login.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp index 771051a68b..b54149b03c 100644 --- a/protocols/Steam/src/steam_login.cpp +++ b/protocols/Steam/src/steam_login.cpp @@ -16,10 +16,7 @@ bool CSteamProto::IsMe(const char *steamId) void CSteamProto::OnGotRsaKey(const NETLIBHTTPREQUEST *response)
{
- if (!response)
- return;
-
- if (!response->pData)
+ if (!CheckResponse(response))
return;
// load rsa key parts
@@ -78,13 +75,7 @@ void CSteamProto::OnGotRsaKey(const NETLIBHTTPREQUEST *response) void CSteamProto::OnAuthorization(const NETLIBHTTPREQUEST *response)
{
- if (!response)
- {
- SetStatus(ID_STATUS_OFFLINE);
- return;
- }
-
- if (!response->pData)
+ if (!CheckResponse(response))
{
SetStatus(ID_STATUS_OFFLINE);
return;
@@ -269,7 +260,7 @@ void CSteamProto::HandleTokenExpired() void CSteamProto::OnLoggedOn(const NETLIBHTTPREQUEST *response)
{
- if (!response)
+ if (!CheckResponse(response))
{
// Probably timeout or no connection, we can do nothing here
SetStatus(ID_STATUS_OFFLINE);
|