summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2013-12-27 12:30:44 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2013-12-27 12:30:44 -0500
commit27a80131fdfd2915c374aee33c444469edb44666 (patch)
tree610805f9ebfa7d17f6089b5dd7f356a20c1444c0
parentd99d4f09bb2947a09eb6e1c12057bd805dac070c (diff)
Change where a transaction is marked finished, to avoid forgetting to rollback a failed transaction
-rw-r--r--src/c/urweb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index 0265c67f..0a385cae 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -634,7 +634,6 @@ void uw_reset_keep_error_message(uw_context ctx) {
ctx->amInitializing = 0;
ctx->usedSig = 0;
ctx->needsResig = 0;
- ctx->transaction_started = 0;
}
void uw_reset_keep_request(uw_context ctx) {
@@ -648,6 +647,7 @@ void uw_reset(uw_context ctx) {
memset(ctx->inputs, 0, ctx->app->inputs_len * sizeof(input));
memset(ctx->subinputs, 0, ctx->n_subinputs * sizeof(input));
ctx->used_subinputs = ctx->hasPostBody = ctx->isPost = 0;
+ ctx->transaction_started = 0;
}
failure_kind uw_begin_init(uw_context ctx) {