BIND 10 master, updated. 12071a88b91b30fada5848868fc3ecd173785b37 [master] Merge branch 'trac2665'
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Feb 11 21:50:20 UTC 2013
The branch, master has been updated
via 12071a88b91b30fada5848868fc3ecd173785b37 (commit)
via 50e61198ea74d395b0bc9015c9f01ff29e357e48 (commit)
via aa5b7e1214e00019776d7bab0cf49df604d2a7e9 (commit)
via a08b7575e7d42740c3f659087420472753bbee16 (commit)
from e090b84bd5e2d79d7730563beda5e95140c5d03d (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 12071a88b91b30fada5848868fc3ecd173785b37
Merge: e090b84 50e6119
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Mon Feb 11 13:44:47 2013 -0800
[master] Merge branch 'trac2665'
-----------------------------------------------------------------------
Summary of changes:
src/lib/cc/data.cc | 10 +++++-----
src/lib/config/tests/ccsession_unittests.cc | 2 ++
src/lib/dns/name.cc | 1 -
3 files changed, 7 insertions(+), 6 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/cc/data.cc b/src/lib/cc/data.cc
index f9c23db..af3602a 100644
--- a/src/lib/cc/data.cc
+++ b/src/lib/cc/data.cc
@@ -261,7 +261,7 @@ skipChars(std::istream& in, const char* chars, int& line, int& pos) {
} else {
++pos;
}
- in.get();
+ in.ignore();
c = in.peek();
}
}
@@ -291,7 +291,7 @@ skipTo(std::istream& in, const std::string& file, int& line,
pos = 1;
++line;
}
- in.get();
+ in.ignore();
++pos;
}
in.putback(c);
@@ -352,7 +352,7 @@ strFromStringstream(std::istream& in, const std::string& file,
throwJSONError("Bad escape", file, line, pos);
}
// drop the escaped char
- in.get();
+ in.ignore();
++pos;
}
ss.put(c);
@@ -490,14 +490,14 @@ fromStringstreamMap(std::istream& in, const std::string& file, int& line,
throwJSONError(std::string("Unterminated map, <string> or } expected"), file, line, pos);
} else if (c == '}') {
// empty map, skip closing curly
- c = in.get();
+ in.ignore();
} else {
while (c != EOF && c != '}') {
std::string key = strFromStringstream(in, file, line, pos);
skipTo(in, file, line, pos, ":", WHITESPACE);
// skip the :
- in.get();
+ in.ignore();
pos++;
ConstElementPtr value = Element::fromJSON(in, file, line, pos);
diff --git a/src/lib/config/tests/ccsession_unittests.cc b/src/lib/config/tests/ccsession_unittests.cc
index e07c5a3..2a5e758 100644
--- a/src/lib/config/tests/ccsession_unittests.cc
+++ b/src/lib/config/tests/ccsession_unittests.cc
@@ -343,6 +343,7 @@ TEST_F(CCSessionTest, checkCommand) {
session.addMessage(el("{ \"command\": \"bad_command\" }"), "Spec29", "*");
result = mccs.checkCommand();
EXPECT_EQ(0, session.getMsgQueue()->size());
+ EXPECT_EQ(0, result);
session.addMessage(el("{ \"command\": [ \"bad_command\" ] }"),
"Spec29", "*");
@@ -627,6 +628,7 @@ TEST_F(CCSessionTest, ignoreRemoteConfigCommands) {
EXPECT_EQ(1, session.getMsgQueue()->size());
result = mccs.checkCommand();
EXPECT_EQ(0, session.getMsgQueue()->size());
+ EXPECT_EQ(0, result);
}
TEST_F(CCSessionTest, initializationFail) {
diff --git a/src/lib/dns/name.cc b/src/lib/dns/name.cc
index 079033a..ff00374 100644
--- a/src/lib/dns/name.cc
+++ b/src/lib/dns/name.cc
@@ -227,7 +227,6 @@ stringParse(Iterator s, Iterator send, bool downcase, Offsets& offsets,
isc_throw(BadLabelType,
"invalid label type in " << string(orig_s, send));
}
- state = ft_escape;
// FALLTHROUGH
case ft_escape:
if (!isdigit(c & 0xff)) {
More information about the bind10-changes
mailing list