]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1124] Addressed v4 code review
authorThomas Markwalder <tmark@isc.org>
Tue, 3 Mar 2020 13:51:13 +0000 (08:51 -0500)
committerTomek Mrugalski <tomek@isc.org>
Thu, 16 Jul 2020 13:24:56 +0000 (15:24 +0200)
    Minor cleanup in alloc_engine.cc.

src/lib/dhcpsrv/alloc_engine.cc

index ab0f10aebc44ff2f5da3f971cd2348d4bb29f1ad..6bdcb03dbb08a0d9427fd176cfad1b8a49e88d35 100644 (file)
@@ -3905,7 +3905,7 @@ AllocEngine::allocateUnreservedLease4(ClientContext4& ctx) {
                 // An lease exists, is expired, and not reserved use it.
                 if (exist_lease->expired() && (!addressReserved(candidate, ctx))) {
                     ctx.old_lease_ = Lease4Ptr(new Lease4(*exist_lease));
-                    new_lease = (reuseExpiredLease4(exist_lease, ctx, callout_status));
+                    new_lease = reuseExpiredLease4(exist_lease, ctx, callout_status);
                 }
             }