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:49:50 +0000 (08:49 +0900)
commit35a3ce2acf78a95fecbccfd8db0560cca24232df
tree6ab96afe1153a0f7b5ef09324dda07eb65a47042
parentb56aebe76657ce6efa9c6819d5a8c2a31c2bbbba
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 for a reproducible script and patience.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/tdbio.c