From: Ted Lemon Date: Tue, 9 Mar 1999 19:58:42 +0000 (+0000) Subject: Set up back-pointer when allocating client based on discovered interfaces. X-Git-Tag: V3-ALPHA-19990315~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c19577c7ce506056988c03471f14fa157a95b2e1;p=thirdparty%2Fdhcp.git Set up back-pointer when allocating client based on discovered interfaces. --- diff --git a/client/clparse.c b/client/clparse.c index a2c4ac143..3e83a2994 100644 --- a/client/clparse.c +++ b/client/clparse.c @@ -42,7 +42,7 @@ #ifndef lint 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 */ #include "dhcpd.h" @@ -129,6 +129,7 @@ int read_client_conf () if (!ip -> client) log_fatal ("no memory for client state."); memset (ip -> client, 0, sizeof *(ip -> client)); + ip -> client -> interface = ip; } if (!ip -> client -> config) {