summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_login.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-06-04 10:13:04 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-06-04 10:13:04 +0000
commit8aaecbf3a35978c4c1daa6a9d49b563d2b2a91c6 (patch)
tree0af672c7695a82f6e685617945d6588500e3dd26 /protocols/SkypeWeb/src/skype_login.cpp
parente67690e8fd666b05c4dba9a8ef86c1b650e3afc8 (diff)
SkypeWeb: Small fixes.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13993 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_login.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_login.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_login.cpp b/protocols/SkypeWeb/src/skype_login.cpp
index 2de32f82be..056f3df9bc 100644
--- a/protocols/SkypeWeb/src/skype_login.cpp
+++ b/protocols/SkypeWeb/src/skype_login.cpp
@@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
void CSkypeProto::OnLoginOAuth(const NETLIBHTTPREQUEST *response)
{
- if (response == NULL)
+ if (response == NULL || response->pData == NULL)
{
ProtoBroadcastAck(NULL, ACKTYPE_LOGIN, ACKRESULT_FAILED, NULL, LOGIN_ERROR_UNKNOWN);
SetStatus(ID_STATUS_OFFLINE);
@@ -94,7 +94,7 @@ void CSkypeProto::OnEndpointCreated(const NETLIBHTTPREQUEST *response)
}
else if (!mir_strcmpi(response->headers[i].szName, "Location"))
{
- CMStringA szValue = response->headers[i].szValue, szCookieName, szCookieVal;
+ CMStringA szValue = response->headers[i].szValue;
Server = GetServerFromUrl(szValue);
setString("Server", Server);
}