mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-22 18:07:25 +00:00
- 'dhcp.c(3953): non-null pointer' has been repaired. This fixes a flaw
wherein the DHCPv4 server may use seemingly random source addresses. [ISC-Bugs #16897]
This commit is contained in:
parent
d6614ea2ee
commit
e889ded168
6
RELNOTES
6
RELNOTES
@ -51,6 +51,12 @@ The system has only been tested on Linux, FreeBSD, and Solaris, and
|
|||||||
may not work on other platforms. Please report any problems and
|
may not work on other platforms. Please report any problems and
|
||||||
suggested fixes to <dhcp-users@isc.org>.
|
suggested fixes to <dhcp-users@isc.org>.
|
||||||
|
|
||||||
|
|
||||||
|
Changes since 4.0.0a1
|
||||||
|
|
||||||
|
- 'dhcp.c(3953): non-null pointer' has been repaired. This fixes a flaw
|
||||||
|
wherein the DHCPv4 server may use seemingly random source addresses.
|
||||||
|
|
||||||
Changes since 4.0.0-20070413
|
Changes since 4.0.0-20070413
|
||||||
|
|
||||||
- Old (expired) leases are now cleaned.
|
- Old (expired) leases are now cleaned.
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: dhcp.c,v 1.219 2007/05/19 19:16:26 dhankins Exp $ Copyright (c) 2004-2007 Internet Systems Consortium. All rights reserved.\n";
|
"$Id: dhcp.c,v 1.220 2007/05/21 22:09:07 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"
|
||||||
@ -3940,11 +3940,12 @@ void
|
|||||||
get_server_source_address(struct in_addr *from,
|
get_server_source_address(struct in_addr *from,
|
||||||
struct option_state *options,
|
struct option_state *options,
|
||||||
struct packet *packet) {
|
struct packet *packet) {
|
||||||
int option_num;
|
unsigned option_num;
|
||||||
struct option_cache *oc;
|
struct option_cache *oc;
|
||||||
struct data_string d;
|
struct data_string d;
|
||||||
struct in_addr *a;
|
struct in_addr *a;
|
||||||
struct option *option;
|
|
||||||
|
memset(&d, 0, sizeof(d));
|
||||||
|
|
||||||
option_num = DHO_DHCP_SERVER_IDENTIFIER;
|
option_num = DHO_DHCP_SERVER_IDENTIFIER;
|
||||||
oc = lookup_option(&dhcp_universe, options, option_num);
|
oc = lookup_option(&dhcp_universe, options, option_num);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user