From: Matthijs Mekking Date: Fri, 3 Jul 2020 07:46:13 +0000 (+0200) Subject: Increase "rndc dnssec -status" output size X-Git-Tag: v9.17.4~71^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9347e7db7e3e55b119a76de7d35d2b8719311fe6;p=thirdparty%2Fbind9.git Increase "rndc dnssec -status" output size 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. --- diff --git a/bin/named/server.c b/bin/named/server.c index 588d22b95dc..4a8e3912c84 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -14475,7 +14475,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;