From: Jeremy Harris Date: Mon, 6 Apr 2020 19:15:47 +0000 (+0100) Subject: Fix crash X-Git-Tag: exim-4_94_RC0~28 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/01fa9fe01e542c12fbe380356a8402e6dca59953 Fix crash Broken-by: 0b4dfe7aa1 --- diff --git a/src/src/verify.c b/src/src/verify.c index dda51a5a2..73d2d7659 100644 --- a/src/src/verify.c +++ b/src/src/verify.c @@ -2948,11 +2948,13 @@ if (*t == 0 || (*t == '/' && t != ss)) /* See if there is a semicolon in the pattern */ if ((semicolon = Ustrchr(ss, ';'))) - endname = (opts = Ustrchr(ss, ',')) ? opts : semicolon; -if (opts) { - opts++; - opts = string_copyn(opts, semicolon - opts); + endname = (opts = Ustrchr(ss, ',')) ? opts : semicolon; + if (opts) + { + opts++; + opts = string_copyn(opts, semicolon - opts); + } } /* If we are doing an IP address only match, then all lookups must be IP