Use the BDB "environment" so that a database config file is not looked for. Bug...
[exim.git] / src / src / acl.c
index 42e7d7a42a5884e606a3e053c6082efaf1cc834c..cf7e42aa4bc222b846504a468f65dd27e8bd8e97 100644 (file)
@@ -2352,8 +2352,7 @@ if (t != NULL)
 /* We aren't using a pre-computed rate, so get a previously recorded rate
 from the database, which will be updated and written back if required. */
 
-dbm = dbfn_open(US"ratelimit", O_RDWR, &dbblock, TRUE);
-if (dbm == NULL)
+if (!(dbm = dbfn_open(US"ratelimit", O_RDWR, &dbblock, TRUE)))
   {
   store_pool = old_pool;
   sender_rate = NULL;
@@ -3548,7 +3547,7 @@ for (; cb != NULL; cb = cb->next)
       {
       uschar *sdomain;
       sdomain = Ustrrchr(sender_address, '@');
-      sdomain = sdomain ? sdomain + 1 ? US"";
+      sdomain = sdomain ? sdomain + 1 : US"";
       rc = match_isinlist(sdomain, &arg, 0, &domainlist_anchor,
         sender_domain_cache, MCL_DOMAIN, TRUE, NULL);
       }