diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-02 17:55:46 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-02 17:55:46 +0000 |
commit | 26a22a753462573077d2a8072fd2eb822a288d7d (patch) | |
tree | a8eebf3985fc57a53109ad8d6359ff010ac88158 /protocols/SkypeWeb/src/skype_login.cpp | |
parent | 904cc94d119a5b7952cffe35e9023035a7a0c21c (diff) |
SkypeWeb: pass_ptr - smart pointer for passwords
git-svn-id: http://svn.miranda-ng.org/main/trunk@14821 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_login.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_login.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_login.cpp b/protocols/SkypeWeb/src/skype_login.cpp index ab650a5e0e..bec1edbcff 100644 --- a/protocols/SkypeWeb/src/skype_login.cpp +++ b/protocols/SkypeWeb/src/skype_login.cpp @@ -26,7 +26,7 @@ void CSkypeProto::Login() requestQueue->Start();
int tokenExpires(getDword("TokenExpiresIn", 0));
ptrA szLogin(getStringA(SKYPE_SETTINGS_ID));
- ptrA szPassword(getStringA(SKYPE_SETTINGS_PASSWORD));
+ pass_ptr szPassword(getStringA(SKYPE_SETTINGS_PASSWORD));
if (szLogin == NULL || szPassword == NULL)
{
ProtoBroadcastAck(NULL, ACKTYPE_LOGIN, ACKRESULT_FAILED, NULL, LOGIN_ERROR_UNKNOWN);
@@ -42,7 +42,6 @@ void CSkypeProto::Login() else
SendRequest(new LoginOAuthRequest(szLogin, szPassword), &CSkypeProto::OnLoginOAuth);
}
- SecureZeroMemory(szPassword, mir_strlen(szPassword));
}
void CSkypeProto::OnLoginOAuth(const NETLIBHTTPREQUEST *response)
|