mirror of
https://github.com/biergaizi/codecrypt
synced 2024-06-16 11:58:16 +00:00
keyring: fix forgotten check
This commit is contained in:
parent
104ee12951
commit
7ec0823834
@ -183,7 +183,8 @@ public:
|
||||
void remove_keypair (const std::string&keyid) {
|
||||
if (pairs.count (keyid)) {
|
||||
sencode_destroy (pairs[keyid].pub.key);
|
||||
sencode_destroy (pairs[keyid].privkey);
|
||||
if (pairs[keyid].privkey)
|
||||
sencode_destroy (pairs[keyid].privkey);
|
||||
pairs.erase (keyid);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user