]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Clean up fctx->next_timeout
authorAram Sargsyan <aram@isc.org>
Sat, 21 Dec 2024 09:10:20 +0000 (09:10 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Wed, 22 Jan 2025 13:40:45 +0000 (13:40 +0000)
Since the support for non-zero values of stale-answer-client-timeout
was removed in bd7463914fe6375e3e9157f305c60d0172f2b312, 'next_timeout'
is unused. Clean it up.

lib/dns/resolver.c

index 2aa4ca381a2700fe31d0c1a4842f2ecb15b3fee2..80b6cbe388a80b7d244981209d501496f3f85a98 100644 (file)
@@ -360,7 +360,6 @@ struct fetchctx {
        atomic_uint_fast32_t attributes;
        isc_timer_t *timer;
        isc_time_t expires;
-       isc_time_t next_timeout;
        isc_interval_t interval;
        dns_message_t *qmessage;
        ISC_LIST(resquery_t) queries;
@@ -1875,7 +1874,6 @@ fctx_setretryinterval(fetchctx_t *fctx, unsigned int rtt) {
        seconds = us / US_PER_SEC;
        us -= seconds * US_PER_SEC;
        isc_interval_set(&fctx->interval, seconds, us * NS_PER_US);
-       isc_time_nowplusinterval(&fctx->next_timeout, &fctx->interval);
 }
 
 static isc_result_t