g10: If an sqlite operation fails, map the error code to GPG_ERR_GENERAL
authorNeal H. Walfield <neal@g10code.com>
Thu, 13 Oct 2016 10:32:03 +0000 (12:32 +0200)
committerNeal H. Walfield <neal@g10code.com>
Thu, 13 Oct 2016 10:32:03 +0000 (12:32 +0200)
commit5bf92e51dfdfb4f4746ecd817d8d2240ed27ea74
treea7b6a6c216007b6fea196a2919f254b21a02da9d
parent2282c3b761413dfa894300e70084bbd58908c0b1
g10: If an sqlite operation fails, map the error code to GPG_ERR_GENERAL

* g10/tofu.c (get_policy): If an sqlite operation fails, map the error
  code to GPG_ERR_GENERAL.
(ask_about_binding): Likewise.
(build_conflict_set): Likewise.
(get_trust): Likewise.
(show_statistics): Likewise.
(tofu_register_signature): Likewise.
(tofu_register_encryption): Likewise.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
g10/tofu.c