summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2020-03-26 16:05:19 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2020-03-26 16:05:19 +0000
commitc06ddd664f4a0f6e485f6f9f6b5086aa4719a441 (patch)
tree92dac14289f0cd577e38e9fdce1e54708d7fcede /src
parent46d2a5e6f6e7709d172903b13945d23fc0a2c888 (diff)
Fix argument checking for ${readsocket }
Diffstat (limited to 'src')
-rw-r--r--src/src/expand.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/src/expand.c b/src/src/expand.c
index fddad3179..f937ac337 100644
--- a/src/src/expand.c
+++ b/src/src/expand.c
@@ -5335,8 +5335,9 @@ while (*s != 0)
uschar * item;
int sep = 0;
- item = string_nextinlist(&list, &sep, NULL, 0);
- if ((timeout = readconf_readtime(item, 0, FALSE)) < 0)
+ if ( !(item = string_nextinlist(&list, &sep, NULL, 0))
+ || !*item
+ || (timeout = readconf_readtime(item, 0, FALSE)) < 0)
{
expand_string_message = string_sprintf("bad time value %s", item);
goto EXPAND_FAILED;