gpg: Do not bail on an invalid packet in the local keyring.
authorWerner Koch <wk@gnupg.org>
Tue, 21 May 2019 15:27:42 +0000 (17:27 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 21 May 2019 15:27:42 +0000 (17:27 +0200)
commit4c7d63cd5b02ebfd09933bebd1312e01958b3e20
treecfc00bbea0c4069e33069e5cee83b383f6a6eb9f
parent156788a43c20e38cd52f4f725395aff2c72142ff
gpg: Do not bail on an invalid packet in the local keyring.

* g10/keydb.c (parse_keyblock_image): Treat invalid packet special.
--

This is in particular useful to run --list-keys on a keyring with
corrupted packets.  The extra flush is to keep the diagnostic close to
the regular --list-key output.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/keydb.c