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

Provenance
wernerAuthored on May 16 2019, 1:57 PM
Parents
rG6f72aa821407: kbx: Fix deadlock in gpgsm on Windows due to a sharing violation.
Branches
Unknown
Tags
Unknown
Tasks
T4505: SM, W32: GPGSM hangs up the GnuPG System