Browse Source

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

Marcin Siodelski 11 years ago
parent
commit
5763b603f2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dhcpsrv/dhcp_parsers.cc

+ 1 - 1
src/lib/dhcpsrv/dhcp_parsers.cc

@@ -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() << ")");