Home GnuPG
Diffusion GnuPG a19534b70e27

gpg: Fix possible double free in import_revoke_cert.

Description

gpg: Fix possible double free in import_revoke_cert.

* g10/import.c (import_revoke_cert): Fix possible double free. Use
LEAVE label on errors.

There was a possible double free by calling keydb_release twice, once
before jumping to "leave:" and once after.
Always jump to "leave:" on errors.

Details

Provenance
pl13Authored on Tue, Jul 7, 2:47 PM
Parents
rGe319d82d7e3a: gpg: Fix assertion.
Branches
Unknown
Tags
Unknown
Tasks
T8328: double keydb_release() in error handling path of g10/import.c : import_revoke_cert