Commit 5763b603 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[3409] Use reset function to set the pointer to the Subnet config parser

parent 7137b4a4
......@@ -1026,7 +1026,7 @@ SubnetConfigParser::build(ConstElementPtr subnet) {
// below will thrown an exception. We have to catch this exception
// to append the line number where the parameter is.
try {
parser = (createSubnetConfigParser(param.first));
parser.reset(createSubnetConfigParser(param.first));
} catch (const std::exception& ex) {
isc_throw(DhcpConfigError, ex.what() << " ("
<< param.second->getPosition() << ")");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment