diff options
author | Mukund Sivaraman <muks@isc.org> | 2012-11-30 05:20:23 +0100 |
---|---|---|
committer | Mukund Sivaraman <muks@isc.org> | 2012-11-30 05:20:23 +0100 |
commit | c73280d2ebe15512cd4f09ddbb28c2f5030cd86f (patch) | |
tree | 86db3e336050d63d5c417ef59834fbcae63822d2 /src/lib/dns/rdata.cc | |
parent | [2497] Add tests for AFSDB, DHCID and DNSKEY rrtypes (diff) | |
download | kea-c73280d2ebe15512cd4f09ddbb28c2f5030cd86f.tar.xz kea-c73280d2ebe15512cd4f09ddbb28c2f5030cd86f.zip |
[2497] Also check and stop at END_OF_LINE
Diffstat (limited to 'src/lib/dns/rdata.cc')
-rw-r--r-- | src/lib/dns/rdata.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/dns/rdata.cc b/src/lib/dns/rdata.cc index 06472b0b30..40b6d79dbc 100644 --- a/src/lib/dns/rdata.cc +++ b/src/lib/dns/rdata.cc @@ -204,7 +204,8 @@ Generic::Generic(MasterLexer& lexer, const Name*, while (true) { const MasterLexer::Token& token = lexer.getNextToken(); - if (token.getType() == MasterLexer::Token::END_OF_FILE) { + if ((token.getType() == MasterLexer::Token::END_OF_FILE) || + (token.getType() == MasterLexer::Token::END_OF_LINE)) { break; } |