summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2020-04-06 20:15:47 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2020-04-06 20:15:47 +0100
commit01fa9fe01e542c12fbe380356a8402e6dca59953 (patch)
tree45f356667c211a237720eca597e23e0a628b6c12
parent48b30ae1141cbce9fe6f1153f368dd63a4505775 (diff)
Fix crash
Broken-by: 0b4dfe7aa1
-rw-r--r--src/src/verify.c10
1 files 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