mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-24 15:47:18 -04:00
dig wasn't printing BADCOOKIE
This commit is contained in:
parent
64ccc050d7
commit
1f88828520
1 changed files with 3 additions and 4 deletions
|
|
@ -126,13 +126,12 @@ rcode_totext(dns_rcode_t rcode)
|
|||
{
|
||||
static char buf[sizeof("?65535")];
|
||||
|
||||
if (rcode == dns_rcode_badcookie)
|
||||
return ("BADCOOKIE");
|
||||
if (rcode >= (sizeof(rcodetext)/sizeof(rcodetext[0]))) {
|
||||
snprintf(buf, sizeof(buf), "?%u", rcode);
|
||||
return (buf);
|
||||
} else if (rcode == dns_rcode_badcookie)
|
||||
return ("BADCOOKIE");
|
||||
else
|
||||
return (rcodetext[rcode]);
|
||||
return (rcodetext[rcode]);
|
||||
}
|
||||
|
||||
/*% print usage */
|
||||
|
|
|
|||
Loading…
Reference in a new issue