Use the BDB "environment" so that a database config file is not looked for. Bug...
[exim.git] / src / src / acl.c
index efebf9c695e2200b153e39af7878a11f44513043..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;