2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

if() condition in check_expire_entry did not have

the effect I think was intended due to operator precedence: || binds tighter than ?:.
Rewrote it without :?.
This commit is contained in:
Andreas Gustafsson
2001-10-25 17:47:16 +00:00
parent 6a4c22bc4d
commit 66bea4d912

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: adb.c,v 1.184 2001/10/25 04:57:42 marka Exp $ */
/* $Id: adb.c,v 1.185 2001/10/25 17:47:16 gson Exp $ */
/*
* Implementation notes
@@ -2037,7 +2037,7 @@ check_expire_entry(dns_adb_t *adb, dns_adbentry_t **entryp, isc_stdtime_t now)
} else
expire = ISC_FALSE;
if (entry->expires == 0 || expire ? ISC_FALSE : entry->expires > now)
if (entry->expires == 0 || (! expire && entry->expires > now))
return;
/*
* The entry is not in use. Delete it.