From a449aba4c79e1695898bcbd38394f003fb51d48e Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sat, 3 Oct 2015 18:01:16 +0000 Subject: MSN: coverity fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@15503 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MSN/src/msn_auth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/MSN/src/msn_auth.cpp') 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 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 key1((BYTE*)mir_base64_decode(hotSecretToken, &key1len)); static const unsigned char encdata[] = "WS-SecureConversation"; const size_t data1len = sizeof(nonce) + sizeof(encdata) - 1; -- cgit v1.2.3