From 00fe4b03062c2e9adacb95ade9418b759c1238ca Mon Sep 17 00:00:00 2001 From: Ralph Dolmans Date: Mon, 21 Sep 2020 17:17:30 +0200 Subject: [PATCH] - Fix #304: dnstap logging not recovering after dnstap process restarts --- dnstap/dtstream.c | 2 ++ doc/Changelog | 3 +++ 2 files changed, 5 insertions(+) diff --git a/dnstap/dtstream.c b/dnstap/dtstream.c index a778bb64b..6a9e9b890 100644 --- a/dnstap/dtstream.c +++ b/dnstap/dtstream.c @@ -1102,6 +1102,8 @@ static int dtio_read_accept_frame(struct dt_io_thread* dtio) goto close_connection; } dtio->accept_frame_received = 1; + if(!dtio_add_output_event_write(dtio)) + goto close_connection; return 1; } else { /* unknow content type */ diff --git a/doc/Changelog b/doc/Changelog index 8a368f6cc..7e6455da8 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +21 September 2020: Ralph + - Fix #304: dnstap logging not recovering after dnstap process restarts + 21 September 2020: Wouter - Merge PR #311 by luismerino: Dynlibmod leak. - Error message is logged for dynlibmod malloc failures.