]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Update validator/validator.c
authorWouter Wijngaards <wcawijngaards@users.noreply.github.com>
Fri, 6 Oct 2023 14:39:33 +0000 (16:39 +0200)
committerGitHub <noreply@github.com>
Fri, 6 Oct 2023 14:39:33 +0000 (16:39 +0200)
Co-authored-by: Yorgos Thessalonikefs <george@nlnetlabs.nl>
validator/validator.c

index e839484924c4864c000815af85d8a17c6312d3b7..6cd15cfc1c7c01a52c15d64bf450e75989824c48 100644 (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);