1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-23 01:22:45 +02:00

g10: End transaction earlier.

* g10/tofu.c (ask_about_binding): End the transaction earlier.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
Neal H. Walfield 2016-09-01 23:31:53 +02:00
parent b410a3cb76
commit 85fad6c34c

View 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)))