From 2a8d1a6d10ab4ad1c16d6e820ecd7fc2046f25f6 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Fri, 16 Jul 2021 10:53:53 +0200 Subject: [PATCH] - review fix to remove duplicate error printout. --- daemon/remote.c | 6 +----- doc/Changelog | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/daemon/remote.c b/daemon/remote.c index 4cba37895..dd17bff91 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -1359,11 +1359,7 @@ do_datas_add(RES* ssl, struct local_zones* zones) if(buf[0] == 0x04 && buf[1] == 0) break; /* end of transmission */ line++; - if(!perform_data_add(ssl, zones, buf, line)) { - if(!ssl_printf(ssl, "error for input line: %s\n", buf)) - return; - } - else + if(perform_data_add(ssl, zones, buf, line)) num++; } (void)ssl_printf(ssl, "added %d datas\n", num); diff --git a/doc/Changelog b/doc/Changelog index f97944e3e..0d77c5452 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -6,6 +6,7 @@ - Fix spelling in localzone.h comment. - Fix unbound-control local_data and local_datas to print detailed syntax errors. + - review fix to remove duplicate error printout. 6 July 2021: Wouter - iana portlist update.