From 512236d7059880dabfd566bfa550a7b7b5b51bfd Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Thu, 25 May 2023 16:27:19 +0200 Subject: [PATCH] - Fix unbound-dnstap-socket time fraction conversion for printout. --- dnstap/unbound-dnstap-socket.c | 2 +- doc/Changelog | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dnstap/unbound-dnstap-socket.c b/dnstap/unbound-dnstap-socket.c index 1927451fe..d172a6744 100644 --- a/dnstap/unbound-dnstap-socket.c +++ b/dnstap/unbound-dnstap-socket.c @@ -504,7 +504,7 @@ static char* tv_to_str(protobuf_c_boolean has_time_sec, uint64_t time_sec, time_t time_t_sec; memset(&tv, 0, sizeof(tv)); if(has_time_sec) tv.tv_sec = time_sec; - if(has_time_nsec) tv.tv_usec = time_nsec; + if(has_time_nsec) tv.tv_usec = time_nsec/1000; buf[0]=0; time_t_sec = tv.tv_sec; diff --git a/doc/Changelog b/doc/Changelog index 320803f09..07c2e81ac 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 25 May 2023: Wouter - Fix unbound-dnstap-socket printout when no query is present. + - Fix unbound-dnstap-socket time fraction conversion for printout. 19 May 2023: Wouter - Fix RPZ removal of client-ip, nsip, nsdname triggers from IXFR. -- 2.47.3