]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Increase "rndc dnssec -status" output size
authorMatthijs Mekking <matthijs@isc.org>
Fri, 3 Jul 2020 07:46:13 +0000 (09:46 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Fri, 3 Jul 2020 13:13:50 +0000 (15:13 +0200)
BUFSIZ (512 bytes on Windows) may not be enough to fit the status of a
DNSSEC policy and three DNSSEC keys.

Set the size of the relevant buffer to a hardcoded value of 4096 bytes,
which should be enough for most scenarios.

(cherry picked from commit 9347e7db7e3e55b119a76de7d35d2b8719311fe6)

bin/named/server.c

index f5c1eb4943436c5753c4ad7f1b7f7102a6bd5db2..a7805b81fe4d7e0ea05e24eb3c14f67e820cf547 100644 (file)
@@ -14477,7 +14477,7 @@ named_server_dnssec(named_server_t *server, isc_lex_t *lex,
        dns_dnsseckey_t *key;
        const char *ptr;
        /* variables for -status */
-       char output[BUFSIZ];
+       char output[4096];
        isc_stdtime_t now;
        isc_time_t timenow;
        const char *dir;