]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3038] return ptr to client ctx in processDiscover()
authorPiotrek Zadroga <piotrek@isc.org>
Fri, 8 Sep 2023 11:51:33 +0000 (13:51 +0200)
committerPiotrek Zadroga <piotrek@isc.org>
Mon, 18 Sep 2023 17:19:45 +0000 (19:19 +0200)
src/bin/dhcp4/dhcp4_srv.cc

index 0e888c4222b53ff02d8ff04c6b8850502ac7dc72..a79d8a5164efc339f4795d3958ce9602499f78b8 100644 (file)
@@ -3491,6 +3491,10 @@ Dhcpv4Srv::processDiscover(Pkt4Ptr& discover, AllocEngine::ClientContext4Ptr& co
 
     appendServerID(ex);
 
+    // Return the pointer to the context, which will be required by the
+    // lease4_offer callouts.
+    context = ex.getContext();
+
     return (ex.getResponse());
 }