]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5258] Correct bug in error path in PoolParser
authorStephen Morris <stephen@isc.org>
Mon, 24 Apr 2017 17:45:35 +0000 (18:45 +0100)
committerStephen Morris <stephen@isc.org>
Mon, 24 Apr 2017 17:45:35 +0000 (18:45 +0100)
Correct a trivial error that led to a crash (instead of the raising
of an exception) when parsing an incorrect "pools" clause.

src/lib/dhcpsrv/parsers/dhcp_parsers.cc

index b778de67b4d446abde554a4369535eec092b3b42..3b7f8f2986db0797de5e08781ef698d24cd9888f 100644 (file)
@@ -644,7 +644,7 @@ PoolParser::parse(PoolStoragePtr pools,
 
     if (!text_pool) {
         isc_throw(DhcpConfigError, "Mandatory 'pool' entry missing in "
-                  "definition: (" << text_pool->getPosition() << ")");
+                  "definition: (" << pool_structure->getPosition() << ")");
     }
 
     // That should be a single pool representation. It should contain