mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-28 21:07:43 +00:00
- A bug was fixed in interface discovery wherein an error identifying
a server-configured interface with no IPv4 addresses would SEGV. [ISC-Bugs #16896]
This commit is contained in:
parent
83f0873e5c
commit
f796f70a27
2
RELNOTES
2
RELNOTES
@ -56,6 +56,8 @@ suggested fixes to <dhcp-users@isc.org>.
|
|||||||
|
|
||||||
- Fix for icmp packets on 64-bit systems (bug introduced in 4.0).
|
- Fix for icmp packets on 64-bit systems (bug introduced in 4.0).
|
||||||
|
|
||||||
|
- A bug was fixed in interface discovery wherein an error identifying
|
||||||
|
a server-configured interface with no IPv4 addresses would SEGV.
|
||||||
|
|
||||||
Changes since 4.0.0-20070413
|
Changes since 4.0.0-20070413
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: discover.c,v 1.58 2007/05/19 23:28:38 dhankins Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
|
"$Id: discover.c,v 1.59 2007/06/01 22:11:49 dhankins Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@ -1054,6 +1054,8 @@ discover_interfaces(int state) {
|
|||||||
if (local_family == AF_INET) {
|
if (local_family == AF_INET) {
|
||||||
log_error("No subnet declaration for %s (%s).",
|
log_error("No subnet declaration for %s (%s).",
|
||||||
tmp->name,
|
tmp->name,
|
||||||
|
(tmp->addresses == NULL) ?
|
||||||
|
"no IPv4 addresses" :
|
||||||
inet_ntoa(tmp->addresses[0]));
|
inet_ntoa(tmp->addresses[0]));
|
||||||
#ifdef DHCPv6
|
#ifdef DHCPv6
|
||||||
} else {
|
} else {
|
||||||
@ -1063,7 +1065,7 @@ discover_interfaces(int state) {
|
|||||||
abuf,
|
abuf,
|
||||||
sizeof(abuf));
|
sizeof(abuf));
|
||||||
} else {
|
} else {
|
||||||
strcpy(abuf, "no addresses");
|
strcpy(abuf, "no IPv6 addresses");
|
||||||
}
|
}
|
||||||
log_error("No subnet declaration for %s (%s).",
|
log_error("No subnet declaration for %s (%s).",
|
||||||
tmp->name,
|
tmp->name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user