diff options
author | Werner Koch <[email protected]> | 2012-04-30 12:37:36 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2012-04-30 12:37:36 +0000 |
commit | 0f02fba19df16c82ca1ad44a8cb09f952d755598 (patch) | |
tree | c07c5b608cbd6e441b3e91c66ffb4054151565bc /dirmngr/dirmngr-client.c | |
parent | make DNS and URI fields work in gpgsm --gen-key. (diff) | |
download | gnupg-0f02fba19df16c82ca1ad44a8cb09f952d755598.tar.gz gnupg-0f02fba19df16c82ca1ad44a8cb09f952d755598.zip |
agent: Fix deadlock in trustlist due to the switch to npth.
* agent/trustlist.c (clear_trusttable): New.
(agent_reload_trustlist): Use new function.
(read_trustfiles): Require to be called with lock held.
(agent_istrusted): Factor all code out to ...
(istrusted_internal): new. Add ALREADY_LOCKED arg. Make sure the
table islocked. Do not print TRUSTLISTFLAG stati if called internally.
(agent_marktrusted): Replace calls to agent_reload_trustlist by
explicit code.
--
In contrast to pth, npth does not use recursive mutexes by default.
However, the code in trustlist.c assumed recursive locks and thus we
had to rework it.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions