Commit be5a6dd4 authored by Francis Dupont's avatar Francis Dupont
Browse files

[master] missing reference in catch

parent 561753ac
...@@ -570,7 +570,7 @@ SubnetConfigParser::createSubnet(ConstElementPtr params) { ...@@ -570,7 +570,7 @@ SubnetConfigParser::createSubnet(ConstElementPtr params) {
unsigned int len; unsigned int len;
try { try {
len = boost::lexical_cast<unsigned int>(subnet_txt.substr(pos + 1)); len = boost::lexical_cast<unsigned int>(subnet_txt.substr(pos + 1));
} catch (const boost::bad_lexical_cast) { } catch (const boost::bad_lexical_cast&) {
ConstElementPtr elem = params->get("subnet"); ConstElementPtr elem = params->get("subnet");
isc_throw(DhcpConfigError, "prefix length: '" << isc_throw(DhcpConfigError, "prefix length: '" <<
subnet_txt.substr(pos+1) << "' is not an integer (" subnet_txt.substr(pos+1) << "' is not an integer ("
......
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