From 01fa9fe01e542c12fbe380356a8402e6dca59953 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Mon, 6 Apr 2020 20:15:47 +0100 Subject: [PATCH 1/1] Fix crash Broken-by: 0b4dfe7aa1 --- src/src/verify.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 -- 2.30.2