mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-18 21:17:41 +01:00
gpg: Fix double free of internal data.
* g10/sig-check.c (check_signature_over_key_or_uid): Do not free in no-sig-cache mode if allocated by caller. -- GnuPG-bug-id: 7547 Fixes-commit: 44cdb9d73f1a0b7d2c8483a119b9c4d6caabc1ec
This commit is contained in:
parent
6b233c6704
commit
0666a8858f
@ -943,7 +943,8 @@ check_signature_over_key_or_uid (ctrl_t ctrl, PKT_public_key *signer,
|
|||||||
rc = get_pubkey_for_sig (ctrl, signer, sig, NULL);
|
rc = get_pubkey_for_sig (ctrl, signer, sig, NULL);
|
||||||
if (rc)
|
if (rc)
|
||||||
{
|
{
|
||||||
xfree (signer);
|
if (signer_alloced != 1)
|
||||||
|
xfree (signer);
|
||||||
signer = NULL;
|
signer = NULL;
|
||||||
signer_alloced = 0;
|
signer_alloced = 0;
|
||||||
goto leave;
|
goto leave;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user