mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-05 08:45:35 +00:00
[master] Leave siaddr clear when sending a NAK
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
DHCP Protocol engine. */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2004-2014 by Internet Systems Consortium, Inc. ("ISC")
|
||||
* Copyright (c) 2004-2015 by Internet Systems Consortium, Inc. ("ISC")
|
||||
* Copyright (c) 1995-2003 by Internet Software Consortium
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
@@ -1695,8 +1695,6 @@ void nak_lease (packet, cip, network_group)
|
||||
option_state_dereference (&options, MDL);
|
||||
|
||||
/* memset (&raw.ciaddr, 0, sizeof raw.ciaddr);*/
|
||||
if (packet->interface->address_count)
|
||||
raw.siaddr = packet->interface->addresses[0];
|
||||
raw.giaddr = packet -> raw -> giaddr;
|
||||
memcpy (raw.chaddr, packet -> raw -> chaddr, sizeof raw.chaddr);
|
||||
raw.hlen = packet -> raw -> hlen;
|
||||
|
Reference in New Issue
Block a user