BIND 10 trac1627, updated. db81de14a1c0c6f1e1594920353eb1677cf19aea [1627] (editorial) folded long lines
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Mar 29 21:00:48 UTC 2012
The branch, trac1627 has been updated
via db81de14a1c0c6f1e1594920353eb1677cf19aea (commit)
via e8ac20ecefa4b50d68ab5be04a425169d4f588f3 (commit)
from 834b2f4459a9d31251333eec58d7b9118567bee3 (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 db81de14a1c0c6f1e1594920353eb1677cf19aea
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Thu Mar 29 13:59:38 2012 -0700
[1627] (editorial) folded long lines
commit e8ac20ecefa4b50d68ab5be04a425169d4f588f3
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Thu Mar 29 13:32:49 2012 -0700
[1627] (editorial) folded long lines
-----------------------------------------------------------------------
Summary of changes:
src/lib/dns/name.cc | 6 ++++--
src/lib/dns/tests/name_unittest.cc | 13 +++++++------
2 files changed, 11 insertions(+), 8 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/name.cc b/src/lib/dns/name.cc
index 62107ab..d642e97 100644
--- a/src/lib/dns/name.cc
+++ b/src/lib/dns/name.cc
@@ -244,7 +244,8 @@ Name::Name(const std::string &namestring, bool downcase) {
case ft_escdecimal:
if (!isdigit(c & 0xff)) {
isc_throw(BadEscape,
- "mixture of escaped digit and non-digit in " << namestring);
+ "mixture of escaped digit and non-digit in "
+ << namestring);
}
value *= 10;
value += digitvalue[c];
@@ -252,7 +253,8 @@ Name::Name(const std::string &namestring, bool downcase) {
if (digits == 3) {
if (value > 255) {
isc_throw(BadEscape,
- "escaped decimal is too large in " << namestring);
+ "escaped decimal is too large in "
+ << namestring);
}
if (++count > MAX_LABELLEN) {
isc_throw(TooLongLabel,
diff --git a/src/lib/dns/tests/name_unittest.cc b/src/lib/dns/tests/name_unittest.cc
index 7e4c7b3..be72355 100644
--- a/src/lib/dns/tests/name_unittest.cc
+++ b/src/lib/dns/tests/name_unittest.cc
@@ -193,12 +193,13 @@ TEST_F(NameTest, fromText) {
"012345678901234567890123456789"
"01\\111"));
// A domain name must be 255 octets or less
- checkBadTextName<TooLongName>("123456789.123456789.123456789.123456789.123456789."
- "123456789.123456789.123456789.123456789.123456789."
- "123456789.123456789.123456789.123456789.123456789."
- "123456789.123456789.123456789.123456789.123456789."
- "123456789.123456789.123456789.123456789.123456789."
- "1234");
+ checkBadTextName<TooLongName>("123456789.123456789.123456789.123456789."
+ "123456789.123456789.123456789.123456789."
+ "123456789.123456789.123456789.123456789."
+ "123456789.123456789.123456789.123456789."
+ "123456789.123456789.123456789.123456789."
+ "123456789.123456789.123456789.123456789."
+ "123456789.1234");
// This is a possible longest name and should be accepted
EXPECT_NO_THROW(Name("123456789.123456789.123456789.123456789.123456789."
"123456789.123456789.123456789.123456789.123456789."
More information about the bind10-changes
mailing list