]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix time in case answer comes from cache in ub_resolve_event().
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 30 May 2016 12:48:11 +0000 (12:48 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 30 May 2016 12:48:11 +0000 (12:48 +0000)
git-svn-id: file:///svn/unbound/trunk@3732 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
libunbound/libunbound.c

index ee5f9abd1de9c90011635f043c7d40c39eadd3ba..286a2134885d74e5cbadbd86e92d07a7a56989c6 100644 (file)
@@ -1,3 +1,6 @@
+30 May 2016: Wouter
+       - Fix time in case answer comes from cache in ub_resolve_event().
+
 27 May 2016: Wouter
        - Fix #770: Small subgroup attack on DH used in unix pipe on localhost
          if unbound control uses a unix local named pipe.
index 2d86de3e9d2ae6e7ba61f5cd18887b40b85060ae..69ccb08f45cb3516d08c9369b754d59bf2ad9876 100644 (file)
@@ -717,6 +717,9 @@ ub_resolve_event(struct ub_ctx* ctx, const char* name, int rrtype,
                }
        }
 
+       /* set time in case answer comes from cache */
+       ub_comm_base_now(ctx->event_worker->base);
+
        /* create new ctx_query and attempt to add to the list */
        q = context_new(ctx, name, rrtype, rrclass, (ub_callback_t)callback,
                mydata);