diff options
Diffstat (limited to 'protocols/MSN/src/msn_auth.cpp')
-rw-r--r-- | protocols/MSN/src/msn_auth.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/MSN/src/msn_auth.cpp b/protocols/MSN/src/msn_auth.cpp index a74fd9e928..0f8ba306e9 100644 --- a/protocols/MSN/src/msn_auth.cpp +++ b/protocols/MSN/src/msn_auth.cpp @@ -156,7 +156,8 @@ static const char authPacket[] = GenericToken::GenericToken(const char *pszTokenName):
m_pszTokenName(pszTokenName),
m_pszToken(NULL),
- m_tExpires(0)
+ m_tExpires(0),
+ m_proto(NULL)
{
}
@@ -259,6 +260,7 @@ bool SkypeToken::Refresh(bool bForce) NETLIBHTTPREQUEST *nlhrReply;
NETLIBHTTPHEADER headers[1];
char szPOST[2048], szToken[1024];
+ bool bRet = false;
if (!bForce && !Expired()) return false;
@@ -315,10 +317,12 @@ bool SkypeToken::Refresh(bool bForce) tExpires = atoi(pExpireTime+12);
} else tExpires=86400;
SetToken(szToken, time(NULL)+tExpires);
+ bRet=true;
}
}
CallService(MS_NETLIB_FREEHTTPREQUESTSTRUCT, 0, (LPARAM)nlhrReply);
} else m_proto->hHttpsConnection = NULL;
+ return bRet;
}
const char *SkypeToken::XSkypetoken()
|