gpg: Avoid endless loop if a card's serial number can't be read.
authorWerner Koch <wk@gnupg.org>
Wed, 3 Apr 2019 09:26:14 +0000 (11:26 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 3 Apr 2019 09:26:14 +0000 (11:26 +0200)
commit1f688e0d1dba4dd7a311d416d06d654ed7b4290d
tree60ebaba398154bedf54541ffc4cb5cdd5ebd4415
parentbcca3acb87c36213fef9311236ea949d006f759c
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>
g10/skclist.c