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>
Wed, 15 Jun 2016 00:01:00 +0000 (09:01 +0900)
commitdb246f8b18b77314938e596b8217bd97223d5aad
treec34557efba19f4a73a9b788b32c3b53b8742428f
parent536c721183e76087492054307cd49276c0ed62b8
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)
61 files changed:
g10/tdbio.c
po/be.gmo [new file with mode: 0644]
po/be.po~ [new file with mode: 0644]
po/ca.gmo [new file with mode: 0644]
po/ca.po~ [new file with mode: 0644]
po/cs.gmo [new file with mode: 0644]
po/cs.po~ [new file with mode: 0644]
po/da.gmo [new file with mode: 0644]
po/da.po~ [new file with mode: 0644]
po/de.gmo [new file with mode: 0644]
po/de.po~ [new file with mode: 0644]
po/el.gmo [new file with mode: 0644]
po/el.po~ [new file with mode: 0644]
po/en@boldquot.gmo [new file with mode: 0644]
po/en@quot.gmo [new file with mode: 0644]
po/eo.gmo [new file with mode: 0644]
po/eo.po~ [new file with mode: 0644]
po/es.gmo [new file with mode: 0644]
po/es.po~ [new file with mode: 0644]
po/et.gmo [new file with mode: 0644]
po/et.po~ [new file with mode: 0644]
po/fi.gmo [new file with mode: 0644]
po/fi.po~ [new file with mode: 0644]
po/fr.gmo [new file with mode: 0644]
po/fr.po~ [new file with mode: 0644]
po/gl.gmo [new file with mode: 0644]
po/gl.po~ [new file with mode: 0644]
po/hu.gmo [new file with mode: 0644]
po/hu.po~ [new file with mode: 0644]
po/id.gmo [new file with mode: 0644]
po/id.po~ [new file with mode: 0644]
po/it.gmo [new file with mode: 0644]
po/it.po~ [new file with mode: 0644]
po/ja.gmo [new file with mode: 0644]
po/ja.po~ [new file with mode: 0644]
po/nb.gmo [new file with mode: 0644]
po/nb.po~ [new file with mode: 0644]
po/nl.gmo [new file with mode: 0644]
po/nl.po~ [new file with mode: 0644]
po/pl.gmo [new file with mode: 0644]
po/pl.po~ [new file with mode: 0644]
po/pt.gmo [new file with mode: 0644]
po/pt.po~ [new file with mode: 0644]
po/pt_BR.gmo [new file with mode: 0644]
po/pt_BR.po~ [new file with mode: 0644]
po/ro.gmo [new file with mode: 0644]
po/ro.po~ [new file with mode: 0644]
po/ru.gmo [new file with mode: 0644]
po/ru.po~ [new file with mode: 0644]
po/sk.gmo [new file with mode: 0644]
po/sk.po~ [new file with mode: 0644]
po/sv.gmo [new file with mode: 0644]
po/sv.po~ [new file with mode: 0644]
po/tr.gmo [new file with mode: 0644]
po/tr.po~ [new file with mode: 0644]
po/uk.gmo [new file with mode: 0644]
po/uk.po~ [new file with mode: 0644]
po/zh_CN.gmo [new file with mode: 0644]
po/zh_CN.po~ [new file with mode: 0644]
po/zh_TW.gmo [new file with mode: 0644]
po/zh_TW.po~ [new file with mode: 0644]