]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
Revert "[2387] Allow comments at the end of DS like string data"
authorMukund Sivaraman <muks@isc.org>
Mon, 11 Mar 2013 03:19:38 +0000 (08:49 +0530)
committerMukund Sivaraman <muks@isc.org>
Mon, 11 Mar 2013 03:19:38 +0000 (08:49 +0530)
This reverts commit 00d53a32412c50c20c573f40d895e8ad7f74ad4f.

src/lib/dns/rdata/generic/detail/ds_like.h

index 4f742b9c9d50a11d6891d2b3f5be0ce5893a5179..a7bebbfa46f9b0e90c459d374260becf493b61f5 100644 (file)
@@ -79,14 +79,7 @@ public:
 
             constructFromLexer(lexer);
 
-            for (MasterToken::Type token_type = lexer.getNextToken().getType();
-                 token_type != MasterToken::END_OF_FILE;
-                 token_type = lexer.getNextToken().getType())
-            {
-                if (token_type == MasterToken::END_OF_LINE) {
-                    continue;
-                }
-
+            if (lexer.getNextToken().getType() != MasterToken::END_OF_FILE) {
                 isc_throw(InvalidRdataText,
                           "Extra input text for " << RRType(typeCode) << ": "
                           << ds_str);