]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Always call zone_settimer()
authorMark Andrews <marka@isc.org>
Thu, 27 Feb 2020 06:43:26 +0000 (17:43 +1100)
committerMark Andrews <marka@isc.org>
Tue, 3 Mar 2020 04:26:27 +0000 (15:26 +1100)
zone_needdump() could potentially not call zone_settimer() so
explitly call zone_settimer() as zone->resigntime could have
gone backward.

lib/dns/zone.c

index baddd91a584dbeb7441501325d78e0550fcb0e79..52e2b8a767adff995a31ffe3e456f30ffe752bd8 100644 (file)
@@ -11088,6 +11088,11 @@ again:
                /* XXXMPA make separate call back */
                if (result == ISC_R_SUCCESS) {
                        set_resigntime(zone);
+                       if (zone->task != NULL) {
+                               isc_time_t now;
+                               TIME_NOW(&now);
+                               zone_settimer(zone, &now);
+                       }
                }
        }
        if (secure != NULL) {