From ed5a9ed1b12378f31b099b9722a39beda8099283 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Fri, 28 Feb 2020 09:22:15 +0100 Subject: [PATCH] dnstap io, fix for review comment. --- dnstap/dtstream.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dnstap/dtstream.c b/dnstap/dtstream.c index fe02cc2aa..2d55d197f 100644 --- a/dnstap/dtstream.c +++ b/dnstap/dtstream.c @@ -1681,12 +1681,12 @@ static void dtio_open_output(struct dt_io_thread* dtio) dtio_reconnect_enable(dtio); return; } - } - if(dtio->upstream_is_tls) { - if(!dtio_setup_ssl(dtio)) { - dtio_close_fd(dtio); - dtio_reconnect_enable(dtio); - return; + if(dtio->upstream_is_tls) { + if(!dtio_setup_ssl(dtio)) { + dtio_close_fd(dtio); + dtio_reconnect_enable(dtio); + return; + } } } dtio->check_nb_connect = 1; -- 2.47.3