BIND 10 master, updated. 343252ae26f8e68890143fda004008e304dee087 [master] Fix for variable scope reported by cppcheck
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Aug 26 13:22:07 UTC 2013
The branch, master has been updated
via 343252ae26f8e68890143fda004008e304dee087 (commit)
from 4e92be8690b5b439d1d022083d6677a5c1a313d7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 343252ae26f8e68890143fda004008e304dee087
Author: Tomek Mrugalski <tomasz at isc.org>
Date: Mon Aug 26 15:21:37 2013 +0200
[master] Fix for variable scope reported by cppcheck
-----------------------------------------------------------------------
Summary of changes:
src/bin/dhcp4/dhcp4_srv.cc | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/dhcp4/dhcp4_srv.cc b/src/bin/dhcp4/dhcp4_srv.cc
index 5ea0519..d47b820 100644
--- a/src/bin/dhcp4/dhcp4_srv.cc
+++ b/src/bin/dhcp4/dhcp4_srv.cc
@@ -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
More information about the bind10-changes
mailing list