mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
only emit a single space between mac length and the orginal id if the mac length is zero
This commit is contained in:
parent
26699ac57e
commit
ac1c3aaa27
@ -187,6 +187,7 @@ totext_any_tsig(ARGS_TOTEXT) {
|
|||||||
/*
|
/*
|
||||||
* Signature.
|
* Signature.
|
||||||
*/
|
*/
|
||||||
|
if (n != 0U) {
|
||||||
REQUIRE(n <= sr.length);
|
REQUIRE(n <= sr.length);
|
||||||
sigr = sr;
|
sigr = sr;
|
||||||
sigr.length = n;
|
sigr.length = n;
|
||||||
@ -203,6 +204,9 @@ totext_any_tsig(ARGS_TOTEXT) {
|
|||||||
else
|
else
|
||||||
RETERR(str_totext(" ", target));
|
RETERR(str_totext(" ", target));
|
||||||
isc_region_consume(&sr, n);
|
isc_region_consume(&sr, n);
|
||||||
|
} else {
|
||||||
|
RETERR(str_totext(" ", target));
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Original ID.
|
* Original ID.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user