mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +00:00
Don't insert 2nd space between NSEC3 nexthash and typemap fields
This commit is contained in:
committed by
Mark Andrews
parent
374746430d
commit
d4ea1edd2c
@@ -469,7 +469,7 @@ typemap_totext(isc_region_t *sr, dns_rdata_textctx_t *tctx,
|
|||||||
{
|
{
|
||||||
unsigned int i, j, k;
|
unsigned int i, j, k;
|
||||||
unsigned int window, len;
|
unsigned int window, len;
|
||||||
isc_boolean_t first = ISC_FALSE;
|
isc_boolean_t first = ISC_TRUE;
|
||||||
|
|
||||||
for (i = 0; i < sr->length; i += len) {
|
for (i = 0; i < sr->length; i += len) {
|
||||||
if (tctx != NULL &&
|
if (tctx != NULL &&
|
||||||
|
@@ -69,6 +69,12 @@ totext_csync(ARGS_TOTEXT) {
|
|||||||
snprintf(buf, sizeof(buf), "%lu", num);
|
snprintf(buf, sizeof(buf), "%lu", num);
|
||||||
RETERR(str_totext(buf, target));
|
RETERR(str_totext(buf, target));
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Don't leave a trailing space when there's no typemap present.
|
||||||
|
*/
|
||||||
|
if (sr.length > 0) {
|
||||||
|
RETERR(str_totext(" ", target));
|
||||||
|
}
|
||||||
return (typemap_totext(&sr, NULL, target));
|
return (typemap_totext(&sr, NULL, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -162,9 +162,9 @@ totext_nsec3(ARGS_TOTEXT) {
|
|||||||
/*
|
/*
|
||||||
* Don't leave a trailing space when there's no typemap present.
|
* Don't leave a trailing space when there's no typemap present.
|
||||||
*/
|
*/
|
||||||
if (((tctx->flags & DNS_STYLEFLAG_MULTILINE) == 0) && (sr.length > 0))
|
if (((tctx->flags & DNS_STYLEFLAG_MULTILINE) == 0) && (sr.length > 0)) {
|
||||||
RETERR(str_totext(" ", target));
|
RETERR(str_totext(" ", target));
|
||||||
|
}
|
||||||
RETERR(typemap_totext(&sr, tctx, target));
|
RETERR(typemap_totext(&sr, tctx, target));
|
||||||
|
|
||||||
if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0)
|
if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0)
|
||||||
|
@@ -61,6 +61,12 @@ totext_nsec(ARGS_TOTEXT) {
|
|||||||
dns_name_fromregion(&name, &sr);
|
dns_name_fromregion(&name, &sr);
|
||||||
isc_region_consume(&sr, name_length(&name));
|
isc_region_consume(&sr, name_length(&name));
|
||||||
RETERR(dns_name_totext(&name, ISC_FALSE, target));
|
RETERR(dns_name_totext(&name, ISC_FALSE, target));
|
||||||
|
/*
|
||||||
|
* Don't leave a trailing space when there's no typemap present.
|
||||||
|
*/
|
||||||
|
if (sr.length > 0) {
|
||||||
|
RETERR(str_totext(" ", target));
|
||||||
|
}
|
||||||
return (typemap_totext(&sr, NULL, target));
|
return (typemap_totext(&sr, NULL, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user