Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
343252ae
Commit
343252ae
authored
Aug 26, 2013
by
Tomek Mrugalski
🛰
Browse files
[master] Fix for variable scope reported by cppcheck
parent
4e92be86
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp4/dhcp4_srv.cc
View file @
343252ae
...
...
@@ -953,12 +953,9 @@ Dhcpv4Srv::processRelease(Pkt4Ptr& release) {
}
}
// Ok, we've passed all checks. Let's release this address.
bool
success
=
false
;
// was the removal operation succeessful?
// Ok, hw and client-id match - let's release the lease.
if
(
!
skip
)
{
success
=
LeaseMgrFactory
::
instance
().
deleteLease
(
lease
->
addr_
);
bool
success
=
LeaseMgrFactory
::
instance
().
deleteLease
(
lease
->
addr_
);
if
(
success
)
{
// Release successful - we're done here
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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