2
0
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:
Mark Andrews 2018-09-14 15:49:51 +10:00 committed by Evan Hunt
parent 26699ac57e
commit ac1c3aaa27

View File

@ -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.