diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-22 19:30:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-22 19:30:48 +0000 |
commit | 4164b967c13c87fd2a5a3459b037a6a823faa872 (patch) | |
tree | 873ff8f5ba9900c06a444c4b0d2e46651c1eaf37 /plugins/CryptoPP/src/cpp_cntx.cpp | |
parent | 5a6789f0c45660feb1dbd5ada8438c43b8f6bb2c (diff) |
SecureIM:
- fixed crash with memory allocation conflict;
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@6593 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CryptoPP/src/cpp_cntx.cpp')
-rw-r--r-- | plugins/CryptoPP/src/cpp_cntx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CryptoPP/src/cpp_cntx.cpp b/plugins/CryptoPP/src/cpp_cntx.cpp index f0f1c2d96b..54a4d88bed 100644 --- a/plugins/CryptoPP/src/cpp_cntx.cpp +++ b/plugins/CryptoPP/src/cpp_cntx.cpp @@ -70,7 +70,7 @@ PBYTE cpp_alloc_pdata(pCNTX ptr) { // free memory from keys
void cpp_free_keys(pCNTX ptr) {
- SAFE_FREE(ptr->tmp);
+ replaceStr(ptr->tmp, 0);
cpp_alloc_pdata(ptr);
if ( ptr->mode & MODE_PGP ) {
pPGPDATA p = (pPGPDATA) ptr->pdata;
@@ -93,7 +93,7 @@ void cpp_free_keys(pCNTX ptr) { pSIMDATA p = (pSIMDATA) ptr->pdata;
SAFE_FREE(p->PubA);
SAFE_FREE(p->KeyA);
- SAFE_FREE(p->KeyB);
+ mir_free(p->KeyB);
SAFE_FREE(p->KeyX);
SAFE_FREE(p->KeyP);
SAFE_DELETE(p->dh);
|