mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 15:45:25 +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:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* 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
|
* Implementation notes
|
||||||
@@ -2037,7 +2037,7 @@ check_expire_entry(dns_adb_t *adb, dns_adbentry_t **entryp, isc_stdtime_t now)
|
|||||||
} else
|
} else
|
||||||
expire = ISC_FALSE;
|
expire = ISC_FALSE;
|
||||||
|
|
||||||
if (entry->expires == 0 || expire ? ISC_FALSE : entry->expires > now)
|
if (entry->expires == 0 || (! expire && entry->expires > now))
|
||||||
return;
|
return;
|
||||||
/*
|
/*
|
||||||
* The entry is not in use. Delete it.
|
* The entry is not in use. Delete it.
|
||||||
|
Reference in New Issue
Block a user