summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src')
-rw-r--r--protocols/SkypeWeb/src/skype_login.cpp4
-rw-r--r--protocols/SkypeWeb/src/skype_proto.h3
2 files changed, 3 insertions, 4 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);
}
diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h
index 0415261830..6a16d06939 100644
--- a/protocols/SkypeWeb/src/skype_proto.h
+++ b/protocols/SkypeWeb/src/skype_proto.h
@@ -129,8 +129,7 @@ private:
*RegToken,
*TokenSecret,
*EndpointId,
- *SelfSkypeName,
- *pie;
+ *SelfSkypeName;
static CSkypeProto* GetContactAccount(MCONTACT hContact);