]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3367] Removed excessive call to setCiaddr in DHCPv4 server.
authorMarcin Siodelski <marcin@isc.org>
Mon, 13 Oct 2014 15:56:59 +0000 (17:56 +0200)
committerMarcin Siodelski <marcin@isc.org>
Mon, 13 Oct 2014 15:56:59 +0000 (17:56 +0200)
src/bin/dhcp4/dhcp4_srv.cc

index 7da29c032aa5923508030d9b8ff91d5a10f77a08..1ae3b63cfd920d3ae861228ea4834b148c3120a7 100644 (file)
@@ -504,7 +504,6 @@ void
 Dhcpv4Srv::copyDefaultFields(const Pkt4Ptr& question, Pkt4Ptr& answer) {
     answer->setIface(question->getIface());
     answer->setIndex(question->getIndex());
-    answer->setCiaddr(question->getCiaddr());
 
     answer->setSiaddr(IOAddress("0.0.0.0")); // explicitly set this to 0
     // ciaddr is always 0, except for the Renew/Rebind state when it may