From: W.C.A. Wijngaards Date: Fri, 8 Apr 2022 09:19:40 +0000 (+0200) Subject: - Fix zonemd unsupported algo check to set reason to NULL before the X-Git-Tag: release-1.16.0rc1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1289c53c1ad698e51a7adf0271d63af992d78a33;p=thirdparty%2Funbound.git - Fix zonemd unsupported algo check to set reason to NULL before the check routine, but after malformed checks, to get the correct NULL output when the digest matches. --- diff --git a/doc/Changelog b/doc/Changelog index 941246813..1fdae1fde 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -8,6 +8,9 @@ and check for success for debug printout. - Fix zonemd unsupported algo check to print unsupported reason before zeroing it. + - Fix zonemd unsupported algo check to set reason to NULL before the + check routine, but after malformed checks, to get the correct NULL + output when the digest matches. 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 e25c5bd84..d3e93a62a 100644 --- a/services/authzone.c +++ b/services/authzone.c @@ -1932,6 +1932,7 @@ static int auth_zone_zonemd_check_hash(struct auth_zone* z, only_unsupported = 0; continue; } + *reason = NULL; if(auth_zone_generate_zonemd_check(z, scheme, hashalgo, hash, hashlen, region, buf, reason)) { /* success */