From d02e83ae2bd620b8aa77f5d6013061938215e41c Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Fri, 8 Apr 2022 11:10:11 +0200 Subject: [PATCH] - Fix zonemd unsupported algo check to print unsupported reason before zeroing it. --- doc/Changelog | 2 ++ services/authzone.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/Changelog b/doc/Changelog index 2319920e4..941246813 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -6,6 +6,8 @@ - Fix zonemd unsupported algo check. - Fix zonemd unsupported algo check reason to not copy to next record, and check for success for debug printout. + - Fix zonemd unsupported algo check to print unsupported reason before + zeroing it. 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 b10d45859..e25c5bd84 100644 --- a/services/authzone.c +++ b/services/authzone.c @@ -1938,13 +1938,13 @@ 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]; dname_str(z->name, zstr); verbose(VERB_ALGO, "auth-zone %s ZONEMD %d %d is unsupported: %s", zstr, (int)scheme, (int)hashalgo, *reason); } + *reason = NULL; continue; } if(verbosity >= VERB_ALGO) { -- 2.47.3