BIND 10 trac2442, updated. c366a4f8deb99014add34a7c79715beaeb1d63f3 [2442] in CharStringTooLong what() msg, clarify it includes an extra octet.
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Dec 6 23:26:47 UTC 2012
The branch, trac2442 has been updated
via c366a4f8deb99014add34a7c79715beaeb1d63f3 (commit)
from ea88e8907ab138e2fa1c5271c8a03ec53b4b08d0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c366a4f8deb99014add34a7c79715beaeb1d63f3
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Thu Dec 6 15:26:00 2012 -0800
[2442] in CharStringTooLong what() msg, clarify it includes an extra octet.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dns/rdata/generic/detail/char_string.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/rdata/generic/detail/char_string.cc b/src/lib/dns/rdata/generic/detail/char_string.cc
index b08111a..fb4c9b4 100644
--- a/src/lib/dns/rdata/generic/detail/char_string.cc
+++ b/src/lib/dns/rdata/generic/detail/char_string.cc
@@ -86,7 +86,7 @@ strToCharString(const MasterToken::StringRegion& str_region,
}
if (result.size() > MAX_CHARSTRING_LEN + 1) { // '+ 1' due to the len field
isc_throw(CharStringTooLong, "character-string is too long: " <<
- result.size() << " bytes");
+ (result.size() - 1) << "(+1) characters");
}
result[0] = result.size() - 1;
}
More information about the bind10-changes
mailing list