mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +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:
@@ -187,6 +187,7 @@ totext_any_tsig(ARGS_TOTEXT) {
|
||||
/*
|
||||
* Signature.
|
||||
*/
|
||||
if (n != 0U) {
|
||||
REQUIRE(n <= sr.length);
|
||||
sigr = sr;
|
||||
sigr.length = n;
|
||||
@@ -203,6 +204,9 @@ totext_any_tsig(ARGS_TOTEXT) {
|
||||
else
|
||||
RETERR(str_totext(" ", target));
|
||||
isc_region_consume(&sr, n);
|
||||
} else {
|
||||
RETERR(str_totext(" ", target));
|
||||
}
|
||||
|
||||
/*
|
||||
* Original ID.
|
||||
|
Reference in New Issue
Block a user