[exim-cvs] Fix crash

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] Fix crash
Gitweb: https://git.exim.org/exim.git/commitdiff/01fa9fe01e542c12fbe380356a8402e6dca59953
Commit:     01fa9fe01e542c12fbe380356a8402e6dca59953
Parent:     48b30ae1141cbce9fe6f1153f368dd63a4505775
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Mon Apr 6 20:15:47 2020 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Mon Apr 6 20:15:47 2020 +0100


    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 dda51a5..73d2d76 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