From 9b76f4f1e734be9cfb8d3cbd2823b668248a3462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sat, 19 Dec 2015 17:05:46 +0000 Subject: Steam: Fix potential null pointer dereferencing (thanks Wishmaster) git-svn-id: http://svn.miranda-ng.org/main/trunk@15898 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_login.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Steam') diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp index 612af3496c..7000a0942d 100644 --- a/protocols/Steam/src/steam_login.cpp +++ b/protocols/Steam/src/steam_login.cpp @@ -300,7 +300,7 @@ void CSteamProto::OnLoggedOn(const HttpResponse *response) { if (!CheckResponse(response)) { - if (response->resultCode == HTTP_CODE_UNAUTHORIZED) + if (response && response->resultCode == HTTP_CODE_UNAUTHORIZED) { // Probably expired TokenSecret HandleTokenExpired(); -- cgit v1.2.3