From 8f2847ba6954bbd4527daf9cbd1f9093389e2859 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Fri, 8 Apr 2022 10:54:57 +0200 Subject: [PATCH] - Fix zonemd unsupported algo check reason to not copy to next record, and check for success for debug printout. --- doc/Changelog | 2 ++ services/authzone.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/Changelog b/doc/Changelog index ba9926210..2319920e4 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -4,6 +4,8 @@ and no failed or successful other ZONEMD records, or malformed or bad ZONEMD records, the unsupported records allow the zone load. - Fix zonemd unsupported algo check. + - Fix zonemd unsupported algo check reason to not copy to next record, + and check for success for debug printout. 25 March 2022: Wouter - Fix spelling error in comment in sldns_str2wire_svcparam_key_lookup. diff --git a/services/authzone.c b/services/authzone.c index c39ce9763..b10d45859 100644 --- a/services/authzone.c +++ b/services/authzone.c @@ -1938,6 +1938,7 @@ static int auth_zone_zonemd_check_hash(struct auth_zone* z, if(*reason) { if(!unsupported_reason) unsupported_reason = *reason; + *reason = NULL; /* continue to check for valid ZONEMD */ if(verbosity >= VERB_ALGO) { char zstr[255+1]; @@ -1949,7 +1950,7 @@ static int auth_zone_zonemd_check_hash(struct auth_zone* z, if(verbosity >= VERB_ALGO) { char zstr[255+1]; dname_str(z->name, zstr); - if(!reason) + if(!*reason) verbose(VERB_ALGO, "auth-zone %s ZONEMD hash is correct", zstr); } return 1; -- 2.47.3