Fix crash
[users/heiko/exim.git] / src / src / verify.c
index dda51a5a260e30bd2553d1df7b66019fbb464a12..73d2d7659e709f9dae37db09c89afe787ad8f71e 100644 (file)
@@ -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