diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2020-03-26 16:05:19 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2020-03-26 16:05:19 +0000 |
commit | c06ddd664f4a0f6e485f6f9f6b5086aa4719a441 (patch) | |
tree | 92dac14289f0cd577e38e9fdce1e54708d7fcede /src | |
parent | 46d2a5e6f6e7709d172903b13945d23fc0a2c888 (diff) |
Fix argument checking for ${readsocket }
Diffstat (limited to 'src')
-rw-r--r-- | src/src/expand.c | 5 |
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; |