X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/d73e45df63ef6602fa32bd3e196d20735a0b69b5..9e70917d0aa5e51f584b2af69ce80df458ac5c79:/src/src/expand.c diff --git a/src/src/expand.c b/src/src/expand.c index c51c1ff1b..04bb92916 100644 --- a/src/src/expand.c +++ b/src/src/expand.c @@ -2377,8 +2377,10 @@ switch(cond_type) case 3: return NULL; } - *resetok = FALSE; /* eval_acl() might allocate; do not reclaim */ - if (yield != NULL) switch(eval_acl(sub, nelem(sub), &user_msg)) + if (yield != NULL) + { + *resetok = FALSE; /* eval_acl() might allocate; do not reclaim */ + switch(eval_acl(sub, nelem(sub), &user_msg)) { case OK: cond = TRUE; @@ -2399,6 +2401,7 @@ switch(cond_type) expand_string_message = string_sprintf("error from acl \"%s\"", sub[0]); return NULL; } + } return s; }