- Fix zonemd unsupported algo check reason to not copy to next record,

and check for success for debug printout.
This commit is contained in:
W.C.A. Wijngaards 2022-04-08 10:54:57 +02:00
parent 730a03e9bd
commit 8f2847ba69
2 changed files with 4 additions and 1 deletions

View File

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

View File

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