Home GnuPG
Diffusion GnuPG 49b236af0ecb

kbx: Fix deadlock in gpgsm on Windows due to a sharing violation.

Description

kbx: Fix deadlock in gpgsm on Windows due to a sharing violation.

* kbx/keybox-init.c (keybox_lock) [W32]: Use _keybox_close_file
instead of fclose so that a close is done if the file is opened by
another handle.
* kbx/keybox-search.c (keybox_search): Remember the last offset and
use that in NEXT search mode if we had to re-open the file.
  • GnuPG-bug-id: T4505
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on May 14 2019, 7:05 PM
Parents
rG22e274f839f9: sm: Change keydb code to use the keybox locking.
Branches
Unknown
Tags
Unknown
Tasks
T4505: SM, W32: GPGSM hangs up the GnuPG System