]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix to remove unused conditional from cookie timestamp at
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 17 Feb 2026 10:15:15 +0000 (11:15 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 17 Feb 2026 10:15:15 +0000 (11:15 +0100)
  worker env.

daemon/worker.c
doc/Changelog

index 71b90df49f9f2a883ec3a387d170b0f229081eb7..83ee0815ecdfa5a01b352e785e92f18c61adf60a 100644 (file)
@@ -1675,8 +1675,7 @@ worker_handle_request(struct comm_point* c, void* arg, int error,
        }
        if((ret=parse_edns_from_query_pkt(
                        c->buffer, &edns, worker->env.cfg, c, repinfo,
-                       (worker->env.now ? *worker->env.now : time(NULL)),
-                       worker->scratchpad,
+                       *worker->env.now, worker->scratchpad,
                        worker->daemon->cookie_secrets)) != 0) {
                struct edns_data reply_edns;
                verbose(VERB_ALGO, "worker parse edns: formerror.");
index 412b59bc7b2de37384ddbe9a616700ef976080ad..0b03ca3ed7f09c88b1a930d55587a821a3abf69a 100644 (file)
@@ -1,3 +1,7 @@
+17 February 2026: Wouter
+       - Fix to remove unused conditional from cookie timestamp at
+         worker env.
+
 16 February 2026: Yorgos
        - Fix #1404: Priming the root key fails after loading ipfire.org RPZ
          zones. Fixed by including the ZONEMD RRtype in the list of types to