Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
5763b603
Commit
5763b603
authored
Apr 24, 2014
by
Marcin Siodelski
Browse files
[3409] Use reset function to set the pointer to the Subnet config parser
parent
7137b4a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcpsrv/dhcp_parsers.cc
View file @
5763b603
...
...
@@ -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
()
<<
")"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment