From c06ddd664f4a0f6e485f6f9f6b5086aa4719a441 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Thu, 26 Mar 2020 16:05:19 +0000 Subject: Fix argument checking for ${readsocket } --- src/src/expand.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3