- Fix zonemd unsupported algo check to print unsupported reason before

zeroing it.
This commit is contained in:
W.C.A. Wijngaards 2022-04-08 11:10:11 +02:00
parent 8f2847ba69
commit d02e83ae2b
2 changed files with 3 additions and 1 deletions

View file

@ -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.

View file

@ -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) {