]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5104] Fix core
authorFrancis Dupont <fdupont@isc.org>
Sat, 13 May 2017 07:54:01 +0000 (09:54 +0200)
committerFrancis Dupont <fdupont@isc.org>
Sat, 13 May 2017 07:54:01 +0000 (09:54 +0200)
src/lib/dhcpsrv/subnet.cc

index b9cec1ef122d1893879544eb27be5bdc0f1ccd28..f49239143f0124b10c0efad92051cc35ac10ab99 100644 (file)
@@ -367,7 +367,7 @@ bool
 Subnet::inPool(Lease::Type type, const isc::asiolink::IOAddress& addr) const {
 
     // Let's start with checking if it even belongs to that subnet.
-    if (!inRange(addr)) {
+    if ((type != Lease::TYPE_PD) && !inRange(addr)) {
         return (false);
     }