Use the BDB "environment" so that a database config file is not looked for. Bug...
[exim.git] / src / src / acl.c
index 60fa9775259ff55f4362bf48098672f01bbb40cc..2fff4b70477923ded29b47675273ddd0aee06f0c 100644 (file)
@@ -2356,8 +2356,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;