Browse Source

[5104] Fix core

Francis Dupont 8 years ago
parent
commit
e01f1d6f7f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dhcpsrv/subnet.cc

+ 1 - 1
src/lib/dhcpsrv/subnet.cc

@@ -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);
     }