diff options
author | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2017-10-04 22:25:45 +0200 |
---|---|---|
committer | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2017-10-06 21:46:34 +0200 |
commit | 1b7cf216d933b395dee691f05becca4dd44b26f7 (patch) | |
tree | dea219f75e33c52dbdbe49c7286c67ad4fb748fa /src | |
parent | 81f358daccc6f759456eb1ae0f8e456a9118ca9f (diff) |
Check for proper output separator in expanding ${addresses:STRING} (Closes 2171)
Better yet would be to force setting the output separator literally,
and not after expansion of the STRING. But this would be an incompatible
change.
Diffstat (limited to 'src')
-rw-r--r-- | src/src/expand.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/src/expand.c b/src/src/expand.c index 353b8ea56..67b3d65de 100644 --- a/src/src/expand.c +++ b/src/src/expand.c @@ -6797,7 +6797,13 @@ while (*s != 0) int start, end, domain; /* Not really used */ while (isspace(*sub)) sub++; - if (*sub == '>') { *outsep = *++sub; ++sub; } + if (*sub == '>') + if (*outsep = *++sub) ++sub; + else { + expand_string_message = string_sprintf("output separator " + "missing in expanding ${addresses:%s}", --sub); + goto EXPAND_FAILED; + } parse_allow_group = TRUE; for (;;) |