Update validator/validator.c

Co-authored-by: Yorgos Thessalonikefs <george@nlnetlabs.nl>
This commit is contained in:
Wouter Wijngaards 2023-10-06 16:39:33 +02:00 committed by GitHub
parent 1e85749e6e
commit c8ae3de610
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -204,7 +204,7 @@ val_init(struct module_env* env, int id)
struct trust_anchor* anchor = anchors_find_any_noninsecure(
env->anchors);
if(anchor) {
char b[257];
char b[LDNS_MAX_DOMAINLEN+2];
dname_str(anchor->name, b);
log_warn("validator: disable-edns-do is enabled, but there is a trust anchor for '%s'. Since DNSSEC could not work, the disable-edns-do setting is turned off. Continuing without it.", b);
lock_basic_unlock(&anchor->lock);