diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-10-03 18:01:16 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-10-03 18:01:16 +0000 |
commit | a449aba4c79e1695898bcbd38394f003fb51d48e (patch) | |
tree | c1dc43abcdd1fdfbc447f6b2dbb44b7ba1a97fc7 /protocols/MSN/src/msn_auth.cpp | |
parent | a787fdfb4a67db47dd46ca537de4eac426d71dde (diff) |
MSN: coverity fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15503 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_auth.cpp')
-rw-r--r-- | protocols/MSN/src/msn_auth.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/MSN/src/msn_auth.cpp b/protocols/MSN/src/msn_auth.cpp index aead5f7480..0485fd1ae0 100644 --- a/protocols/MSN/src/msn_auth.cpp +++ b/protocols/MSN/src/msn_auth.cpp @@ -390,7 +390,7 @@ static unsigned char* PKCS5_Padding(char* in, size_t &len) char* CMsnProto::GenerateLoginBlob(char* challenge)
{
unsigned key1len;
- BYTE *key1 = (BYTE*)mir_base64_decode(authSecretToken, &key1len);
+ mir_ptr<BYTE> key1((BYTE*)mir_base64_decode(authSecretToken, &key1len));
BYTE key2[MIR_SHA1_HASH_SIZE + 4];
BYTE key3[MIR_SHA1_HASH_SIZE + 4];
@@ -441,7 +441,7 @@ CMStringA CMsnProto::HotmailLogin(const char* url) Utils_GetRandom(nonce, sizeof(nonce));
unsigned key1len;
- BYTE *key1 = (BYTE*)mir_base64_decode(hotSecretToken, &key1len);
+ mir_ptr<BYTE> key1((BYTE*)mir_base64_decode(hotSecretToken, &key1len));
static const unsigned char encdata[] = "WS-SecureConversation";
const size_t data1len = sizeof(nonce) + sizeof(encdata) - 1;
|