diff options
| author | Werner Koch <[email protected]> | 2019-05-14 17:05:58 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2019-05-14 17:05:58 +0000 |
| commit | 49b236af0ecbb6df67513feb4b63851f2e159ea2 (patch) | |
| tree | 6235b36ce6d1955be5ebc3996b1633e0441f5227 /scd/command.c | |
| parent | sm: Change keydb code to use the keybox locking. (diff) | |
| download | gnupg-49b236af0ecbb6df67513feb4b63851f2e159ea2.tar.gz gnupg-49b236af0ecbb6df67513feb4b63851f2e159ea2.zip | |
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: 4505
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'scd/command.c')
0 files changed, 0 insertions, 0 deletions
