From: Stephen Morris Date: Mon, 24 Apr 2017 17:45:35 +0000 (+0100) Subject: [5258] Correct bug in error path in PoolParser X-Git-Tag: trac5212_base~14^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4cc586491dec29fd90a4cfda111248ad71b4aded;p=thirdparty%2Fkea.git [5258] Correct bug in error path in PoolParser Correct a trivial error that led to a crash (instead of the raising of an exception) when parsing an incorrect "pools" clause. --- diff --git a/src/lib/dhcpsrv/parsers/dhcp_parsers.cc b/src/lib/dhcpsrv/parsers/dhcp_parsers.cc index b778de67b4..3b7f8f2986 100644 --- a/src/lib/dhcpsrv/parsers/dhcp_parsers.cc +++ b/src/lib/dhcpsrv/parsers/dhcp_parsers.cc @@ -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