X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/6681531ad79b73f4e811037481a0055ace41e46d..51c7471d48efd62b2d4f5647782ba1e849d4c35a:/src/src/acl.c diff --git a/src/src/acl.c b/src/src/acl.c index fd958aa39..4fda03b77 100644 --- a/src/src/acl.c +++ b/src/src/acl.c @@ -3103,7 +3103,9 @@ for (; cb != NULL; cb = cb->next) /* The true/false parsing here should be kept in sync with that used in expand.c when dealing with ECOND_BOOL so that we don't have too many different definitions of what can be a boolean. */ - if (Ustrspn(arg, "0123456789") == Ustrlen(arg)) /* Digits, or empty */ + if (*arg == '-' + ? Ustrspn(arg+1, "0123456789") == Ustrlen(arg+1) /* Negative number */ + : Ustrspn(arg, "0123456789") == Ustrlen(arg)) /* Digits, or empty */ rc = (Uatoi(arg) == 0)? FAIL : OK; else rc = (strcmpic(arg, US"no") == 0 ||