Skip to content

Commit

Permalink
lib-sieve: Fixed transaction context passed to finish() method of act…
Browse files Browse the repository at this point in the history
…ion object in two cases.

This is not currently used anywhere, so nothing actually broke.
This bug was exposed by the previous commit, causing a compiler error/warning on some compilers.
  • Loading branch information
stephanbosch committed Jan 14, 2017
1 parent 7724855 commit 462a535
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib-sieve/sieve-result.c
Expand Up @@ -1054,7 +1054,7 @@ static int _sieve_result_implicit_keep
/* Finish keep action */
if ( act_keep.def->finish != NULL ) {
act_keep.def->finish
(&act_keep, aenv, &rac->tr_context, status);
(&act_keep, aenv, tr_context, status);
}

return status;
Expand Down Expand Up @@ -1366,7 +1366,7 @@ static void sieve_result_transaction_finish

if ( act->def->finish != NULL ) {
act->def->finish
(act, &result->action_env, &rac->tr_context, status);
(act, &result->action_env, rac->tr_context, status);
}

rac = rac->next;
Expand Down

0 comments on commit 462a535

Please sign in to comment.