]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3063] set new_lease_ in client ctx on OFFER
authorPiotrek Zadroga <piotrek@isc.org>
Wed, 13 Sep 2023 10:26:06 +0000 (12:26 +0200)
committerPiotrek Zadroga <piotrek@isc.org>
Mon, 18 Sep 2023 17:19:45 +0000 (19:19 +0200)
src/lib/dhcpsrv/alloc_engine.cc

index e7b1d826327d34001f05b1004c4bbe3777d26ab6..2043e75cf088d10ecea1197b34a9e1c5bbd773b4 100644 (file)
@@ -3674,7 +3674,7 @@ AllocEngine::allocateLease4(ClientContext4& ctx) {
         }
 
         if (ctx.fake_allocation_) {
-            return (discoverLease4(ctx));
+            ctx.new_lease_ = discoverLease4(ctx);
         } else {
             ctx.new_lease_ = requestLease4(ctx);
         }