mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
style, remove redudant assignment
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: adb.c,v 1.261 2011/10/27 23:46:31 tbox Exp $ */
|
/* $Id: adb.c,v 1.262 2011/10/28 04:57:34 marka Exp $ */
|
||||||
|
|
||||||
/*! \file
|
/*! \file
|
||||||
*
|
*
|
||||||
@@ -4062,7 +4062,6 @@ dns_adb_dropednssize(dns_adb_t *adb, dns_adbaddrinfo_t *addr,
|
|||||||
expires_ts_to_use = addr->entry->edns_expires_timestamp;
|
expires_ts_to_use = addr->entry->edns_expires_timestamp;
|
||||||
timer_setting_to_use = addr->entry->edns_timer_set;
|
timer_setting_to_use = addr->entry->edns_timer_set;
|
||||||
length_to_use = addr->entry->edns_big_size;
|
length_to_use = addr->entry->edns_big_size;
|
||||||
drop_counter_to_use = addr->entry->edns_drop_count;
|
|
||||||
drop_ts_to_use = addr->entry->edns_drop_timestamp;
|
drop_ts_to_use = addr->entry->edns_drop_timestamp;
|
||||||
flag_to_use = addr->entry->edns_fetch_flag;
|
flag_to_use = addr->entry->edns_fetch_flag;
|
||||||
|
|
||||||
@@ -4080,7 +4079,7 @@ dns_adb_dropednssize(dns_adb_t *adb, dns_adbaddrinfo_t *addr,
|
|||||||
if (length > length_to_use)
|
if (length > length_to_use)
|
||||||
length_to_use = length;
|
length_to_use = length;
|
||||||
|
|
||||||
if((now - addr->entry->edns_drop_timestamp) >=
|
if ((now - addr->entry->edns_drop_timestamp) >=
|
||||||
DNS_ADB_EDNS_RESET_TIME) {
|
DNS_ADB_EDNS_RESET_TIME) {
|
||||||
|
|
||||||
drop_counter_to_use = 1;
|
drop_counter_to_use = 1;
|
||||||
@@ -4089,13 +4088,13 @@ dns_adb_dropednssize(dns_adb_t *adb, dns_adbaddrinfo_t *addr,
|
|||||||
|
|
||||||
drop_counter_to_use = addr->entry->edns_drop_count + 1;
|
drop_counter_to_use = addr->entry->edns_drop_count + 1;
|
||||||
|
|
||||||
if(drop_counter_to_use >= DNS_ADB_EDNS_MAX_DROP_COUNT) {
|
if (drop_counter_to_use >= DNS_ADB_EDNS_MAX_DROP_COUNT) {
|
||||||
/*
|
/*
|
||||||
* At this point, we are dropping down the
|
* At this point, we are dropping down the
|
||||||
* udpsize because we've had too many misses
|
* udpsize because we've had too many misses
|
||||||
* at larger sizes.
|
* at larger sizes.
|
||||||
*/
|
*/
|
||||||
if(timer_setting_to_use == isc_boolean_false) {
|
if (timer_setting_to_use == isc_boolean_false) {
|
||||||
/*
|
/*
|
||||||
* if we haven't already set a timer,
|
* if we haven't already set a timer,
|
||||||
* do so now. After DNS_ADB_EDNS_MAX_DROP_TIME,
|
* do so now. After DNS_ADB_EDNS_MAX_DROP_TIME,
|
||||||
@@ -4106,7 +4105,7 @@ dns_adb_dropednssize(dns_adb_t *adb, dns_adbaddrinfo_t *addr,
|
|||||||
timer_setting_to_use = isc_boolean_true;
|
timer_setting_to_use = isc_boolean_true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(length == 0)
|
if (length == 0)
|
||||||
flag_to_use = DNS_FETCHOPT_NOEDNS0;
|
flag_to_use = DNS_FETCHOPT_NOEDNS0;
|
||||||
else /* eventually, more edns sizes here */
|
else /* eventually, more edns sizes here */
|
||||||
flag_to_use = DNS_FETCHOPT_EDNS512;
|
flag_to_use = DNS_FETCHOPT_EDNS512;
|
||||||
|
Reference in New Issue
Block a user