Home GnuPG
Diffusion GnuPG 1f688e0d1dba

gpg: Avoid endless loop if a card's serial number can't be read.

Description

gpg: Avoid endless loop if a card's serial number can't be read.

* g10/skclist.c (enum_secret_keys): Move list forward on error.

The error is not easy to reproduce but may occur if a card is removed
at the wrong time. Tested by changing the code.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Apr 3 2019, 11:26 AM
Parents
rGbcca3acb87c3: card: Allow card selection with LIST.
Branches
Unknown
Tags
Unknown