]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5402] Minor fix in allocation engine checking if lease exists.
authorMarcin Siodelski <marcin@isc.org>
Tue, 7 Nov 2017 10:32:59 +0000 (11:32 +0100)
committerMarcin Siodelski <marcin@isc.org>
Tue, 7 Nov 2017 10:32:59 +0000 (11:32 +0100)
src/lib/dhcpsrv/alloc_engine.cc

index c7c08c371a7568bad7c9f37bde17f2a1c3e24889..28e35668f77e7f90e766cd23f0f9fac1eca4691c 100644 (file)
@@ -1397,7 +1397,7 @@ Lease6Ptr AllocEngine::createLease6(ClientContext6& ctx,
         // It is for advertise only. We should not insert the lease into LeaseMgr,
         // but rather check that we could have inserted it.
         Lease6Ptr existing = LeaseMgrFactory::instance().getLease6(
-                             Lease::TYPE_NA, addr);
+                             ctx.currentIA().type_, addr);
         if (!existing) {
             return (lease);
         } else {