From 85fad6c34c08b2850580e0644faba62d3a501b84 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Thu, 1 Sep 2016 23:31:53 +0200 Subject: [PATCH] g10: End transaction earlier. * g10/tofu.c (ask_about_binding): End the transaction earlier. -- Signed-off-by: Neal H. Walfield --- g10/tofu.c | 3 +-- 1 file changed, 1 insertion(+), 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)))