Skip to content

Commit

Permalink
lib-sieve: Prevent execution of implicit keep upon temporary failure …
Browse files Browse the repository at this point in the history
…occurring at runtime.
  • Loading branch information
stephanbosch authored and sirainen committed Mar 18, 2019
1 parent 54febd7 commit 77cc932
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/lib-sieve/sieve.c
Expand Up @@ -714,14 +714,16 @@ bool sieve_multiscript_run
sieve_multiscript_execute(mscript,
action_ehandler, flags, &mscript->keep);
}
mscript->active =
( mscript->active && mscript->keep && mscript->status > 0 );
if ( !mscript->keep )
mscript->active = FALSE;
}

if ( mscript->status <= 0 )
if ( !mscript->active || mscript->status <= 0 ) {
mscript->active = FALSE;
return FALSE;
}

return mscript->active;
return TRUE;
}

bool sieve_multiscript_will_discard
Expand Down

0 comments on commit 77cc932

Please sign in to comment.