2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-22 09:57:20 +00:00

- Compliation warnings on GCC 4.3 relating to bootp source address

selection were repaired.  [ISC-Bugs #18520]
This commit is contained in:
David Hankins 2008-08-20 23:07:19 +00:00
parent 8fbb55ff3f
commit dd484ced0d
2 changed files with 10 additions and 1 deletions

View File

@ -133,6 +133,9 @@ work on other platforms. Please report any problems and suggested fixes to
- A warning was added since the DHCPv6 processing software does not yet
support class statements.
- Compliation warnings on GCC 4.3 relating to bootp source address
selection were repaired.
Changes since 4.0.0 (new features)
- Added DHCPv6 rapid commit support.

View File

@ -351,8 +351,14 @@ void bootp (packet)
hto.hlen = packet -> raw -> hlen + 1;
memcpy (&hto.hbuf [1], packet -> raw -> chaddr, packet -> raw -> hlen);
if (packet->interface->address_count)
if (packet->interface->address_count) {
from = packet->interface->addresses[0];
} else {
log_error("%s: Interface %s appears to have no IPv4 "
"addresses, and so dhcpd cannot select a source "
"address.", msgbuf, packet->interface->name);
goto out;
}
/* Report what we're doing... */
log_info ("%s", msgbuf);