mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-03 07:45:20 +00:00
Set up back-pointer when allocating client based on discovered interfaces.
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: clparse.c,v 1.23 1999/02/25 23:30:31 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: clparse.c,v 1.24 1999/03/09 19:58:42 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -129,6 +129,7 @@ int read_client_conf ()
|
|||||||
if (!ip -> client)
|
if (!ip -> client)
|
||||||
log_fatal ("no memory for client state.");
|
log_fatal ("no memory for client state.");
|
||||||
memset (ip -> client, 0, sizeof *(ip -> client));
|
memset (ip -> client, 0, sizeof *(ip -> client));
|
||||||
|
ip -> client -> interface = ip;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ip -> client -> config) {
|
if (!ip -> client -> config) {
|
||||||
|
Reference in New Issue
Block a user