From 29cd24bbc6950423873bc591a2b9aaf869947bf5 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Mon, 30 May 2016 12:48:11 +0000 Subject: [PATCH] - Fix time in case answer comes from cache in ub_resolve_event(). git-svn-id: file:///svn/unbound/trunk@3732 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 3 +++ libunbound/libunbound.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index ee5f9abd1..286a21348 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/libunbound/libunbound.c b/libunbound/libunbound.c index 2d86de3e9..69ccb08f4 100644 --- a/libunbound/libunbound.c +++ b/libunbound/libunbound.c @@ -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);