mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 09:09:59 -04:00
Terminate yaml string after negative comment
(cherry picked from commit 89afc11389)
This commit is contained in:
parent
55b7cc9596
commit
69a15deffa
1 changed files with 9 additions and 2 deletions
|
|
@ -769,10 +769,17 @@ rdataset_totext(dns_rdataset_t *rdataset, const dns_name_t *owner_name,
|
|||
INDENT_TO(rdata_column);
|
||||
if ((rdataset->attributes & DNS_RDATASETATTR_NEGATIVE) != 0) {
|
||||
if (NXDOMAIN(rdataset)) {
|
||||
RETERR(str_totext(";-$NXDOMAIN\n", target));
|
||||
RETERR(str_totext(";-$NXDOMAIN", target));
|
||||
} else {
|
||||
RETERR(str_totext(";-$NXRRSET\n", target));
|
||||
RETERR(str_totext(";-$NXRRSET", target));
|
||||
}
|
||||
if (start != NULL) {
|
||||
RETERR(yaml_stringify(target, start));
|
||||
RETERR(str_totext("'\n", target));
|
||||
} else {
|
||||
RETERR(str_totext("\n", target));
|
||||
}
|
||||
|
||||
/*
|
||||
* Print a summary of the cached records which make
|
||||
* up the negative response.
|
||||
|
|
|
|||
Loading…
Reference in a new issue