mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-14 23:40:00 -04:00
restore 9.9 style output
This commit is contained in:
parent
61299de7c3
commit
8f40aae418
1 changed files with 4 additions and 3 deletions
|
|
@ -3332,16 +3332,17 @@ dns_message_pseudosectiontotext(dns_message_t *msg,
|
|||
* For non-COOKIE options, add a printable
|
||||
* version
|
||||
*/
|
||||
ADD_STRING(target, "(\"");
|
||||
if (isc_buffer_availablelength(target) < optlen)
|
||||
return (ISC_R_NOSPACE);
|
||||
for (i = 0; i < optlen; i++) {
|
||||
ADD_STRING(target, " (");
|
||||
if (!isc_buffer_availablelength(target))
|
||||
return (ISC_R_NOSPACE);
|
||||
if (isprint(optdata[i]))
|
||||
isc_buffer_putmem(target,
|
||||
&optdata[i],
|
||||
1);
|
||||
else
|
||||
isc_buffer_putstr(target, ".");
|
||||
ADD_STRING(target, ")");
|
||||
}
|
||||
ADD_STRING(target, "\")");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue