aboutsummaryrefslogtreecommitdiffstats
path: root/g10/tofu.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/tofu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/g10/tofu.c b/g10/tofu.c
index 2ac60658b..75df30af6 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -1414,6 +1414,7 @@ ask_about_binding (ctrl_t ctrl,
" order by fingerprint = ? asc, fingerprint desc, time_ago desc;\n",
GPGSQL_ARG_STRING, email, GPGSQL_ARG_STRING, fingerprint,
GPGSQL_ARG_END);
+ end_transaction (ctrl, 0);
if (rc)
{
strlist_t strlist_iter;
@@ -1680,8 +1681,6 @@ ask_about_binding (ctrl_t ctrl,
}
}
- end_transaction (ctrl, 0);
-
if ((*policy == TOFU_POLICY_NONE && bindings_with_this_email_count > 0)
|| (*policy == TOFU_POLICY_ASK
&& (conflict || bindings_with_this_email_count > 0)))