g10: End transaction earlier.
authorNeal H. Walfield <neal@g10code.com>
Thu, 1 Sep 2016 21:31:53 +0000 (23:31 +0200)
committerNeal H. Walfield <neal@g10code.com>
Thu, 1 Sep 2016 21:32:00 +0000 (23:32 +0200)
* g10/tofu.c (ask_about_binding): End the transaction earlier.

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

index 2ac6065..75df30a 100644 (file)
@@ -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)))