mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
#3260: Memory leak in EVPPKey::loadKey used with files & wrong password
This commit is contained in:
parent
aa32399e26
commit
f5de69b854
@ -195,9 +195,10 @@ private:
|
||||
poco_assert_dbg (typeid(K*) == typeid(EVP_PKEY*));
|
||||
*ppKey = (K*)pKey;
|
||||
}
|
||||
if(!*ppKey) goto error;
|
||||
if (!*ppKey) goto error;
|
||||
return true;
|
||||
}
|
||||
if (getFunc) EVP_PKEY_free(pKey);
|
||||
goto error;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user