summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2021-07-07 22:19:07 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2021-07-07 22:23:03 +0100
commita9ac2d7fc219e41a353abf1f599258b9b9d21b7e (patch)
tree40ac78ae19c6a51e88f207ac0ae274e5d741f7eb /src
parentf517c5879577b17586548fd4ba70ce9cfb862369 (diff)
Fix tainted message for fakereject
Diffstat (limited to 'src')
-rw-r--r--src/src/acl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/src/acl.c b/src/src/acl.c
index 1bf118764..89947f405 100644
--- a/src/src/acl.c
+++ b/src/src/acl.c
@@ -3235,13 +3235,15 @@ for (; cb; cb = cb->next)
case CONTROL_FAKEREJECT:
cancel_cutthrough_connection(TRUE, US"fakereject");
- case CONTROL_FAKEDEFER:
+ case CONTROL_FAKEDEFER:
fake_response = (control_type == CONTROL_FAKEDEFER) ? DEFER : FAIL;
if (*p == '/')
{
const uschar *pp = p + 1;
while (*pp) pp++;
- fake_response_text = expand_string(string_copyn(p+1, pp-p-1));
+ /* The entire control= line was expanded at top so no need to expand
+ the part after the / */
+ fake_response_text = string_copyn(p+1, pp-p-1);
p = pp;
}
else /* Explicitly reset to default string */