From 72e702d5e19a2b3627ebeb0bb3b462ab3994b135 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 16 Nov 2013 17:07:51 +0000 Subject: temporary fix for the wrong keys git-svn-id: http://svn.miranda-ng.org/main/trunk@6922 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db3x_mmap/src/dbcrypt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/Db3x_mmap') diff --git a/plugins/Db3x_mmap/src/dbcrypt.cpp b/plugins/Db3x_mmap/src/dbcrypt.cpp index 42907f46d1..047eaf6cc8 100644 --- a/plugins/Db3x_mmap/src/dbcrypt.cpp +++ b/plugins/Db3x_mmap/src/dbcrypt.cpp @@ -59,6 +59,7 @@ int CDb3Base::InitCrypt() dbv.type = DBVT_BLOB; dbcgs.szSetting = "StoredKey"; if (GetContactSetting(NULL, &dbcgs)) { +LBL_SetNewKey: m_crypto->generateKey(); // unencrypted key BYTE *pKey = (BYTE*)_alloca(iKeyLength); @@ -74,7 +75,7 @@ int CDb3Base::InitCrypt() } else { if (dbv.cpbVal != (WORD)iKeyLength) - return 4; + goto LBL_SetNewKey; m_crypto->setKey(dbv.pbVal, iKeyLength); FreeVariant(&dbv); -- cgit v1.2.3