g10: Fix another race condition for trustdb access.
authorNiibe Yutaka <gniibe@fsij.org>
Tue, 14 Jun 2016 23:41:56 +0000 (08:41 +0900)
committerNiibe Yutaka <gniibe@fsij.org>
Tue, 14 Jun 2016 23:56:12 +0000 (08:56 +0900)
commit00d737e3fde84e7df7ba19080c83237b769cd0d0
tree8b25b104e99ef3e94b6d903daa00fe2001909408
parentd8775285e94b23f8e56a2997f9491dc486d74d79
g10: Fix another race condition for trustdb access.

* g10/tdbio.c (create_version_record): Call create_hashtable to always
make hashtable, together with the version record.
(get_trusthashrec): Remove call to create_hashtable.

--

GnuPG-bug-id: 1675
Thanks to Scott Moser to reproducible script and patience.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
(backport from master
 commit 35a3ce2acf78a95fecbccfd8db0560cca24232df)
g10/tdbio.c