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);