From: Marcin Siodelski Date: Tue, 7 Nov 2017 10:32:59 +0000 (+0100) Subject: [5402] Minor fix in allocation engine checking if lease exists. X-Git-Tag: trac5452_base~10^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01d6d68e0636ddb989e6730733aedb7b5d9fcd37;p=thirdparty%2Fkea.git [5402] Minor fix in allocation engine checking if lease exists. --- diff --git a/src/lib/dhcpsrv/alloc_engine.cc b/src/lib/dhcpsrv/alloc_engine.cc index c7c08c371a..28e35668f7 100644 --- a/src/lib/dhcpsrv/alloc_engine.cc +++ b/src/lib/dhcpsrv/alloc_engine.cc @@ -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 {