Home GnuPG
Diffusion GnuPG 0fff927889b0

kbx: Fix an endless loop under Windows due to an incomplete fix.

Description

kbx: Fix an endless loop under Windows due to an incomplete fix.

* kbx/keybox-search.c (keybox_search):  We need to seek to the last
position in all cases not just when doing a NEXT.

This is because search from the beginning needs a keybox_search_reset.
We can only make an exception for KEYDB_SEARCH_MODE_FIRST..

Details