summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2022-06-05 16:37:28 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2022-06-05 16:37:28 +0100
commitfa3d5d5f69667c03b990ac90ac5cc90c0b4fcab3 (patch)
tree099fe2b29aff0cd081c107221843874797c78b82
parente3e959c9f04cda38741f78725411f0a4f0bc970e (diff)
downloadexim4-fa3d5d5f69667c03b990ac90ac5cc90c0b4fcab3.tar.gz
Avoid processing in ${sg...} when skipping
-rw-r--r--src/src/expand.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/src/expand.c b/src/src/expand.c
index e59625858..744ab4d0b 100644
--- a/src/src/expand.c
+++ b/src/src/expand.c
@@ -5894,8 +5894,8 @@ while (*s)
case 2:
case 3: goto EXPAND_FAILED;
}
+ if (skipping) continue;
- /*XXX no handling of skipping? */
/* Compile the regular expression */
if (!(re = pcre2_compile((PCRE2_SPTR)sub[1], PCRE2_ZERO_TERMINATED,
@@ -5986,7 +5986,6 @@ while (*s)
restore_expand_strings(save_expand_nmax, save_expand_nstring,
save_expand_nlength);
- if (skipping) continue;
break;
}