From: Ted Lemon Date: Sat, 17 Feb 2001 21:16:44 +0000 (+0000) Subject: - Set the fallback interface index to -1 to indicate that it doesn't have X-Git-Tag: V3-BETA-2-PATCH-18~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fbd9c67beda53edbfdaeb0fb8caf2312e6e5d097;p=thirdparty%2Fdhcp.git - Set the fallback interface index to -1 to indicate that it doesn't have one prior to calling interface_stash. --- diff --git a/common/discover.c b/common/discover.c index f734c92bf..89ca6ad8c 100644 --- a/common/discover.c +++ b/common/discover.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: discover.c,v 1.37 2001/02/12 19:40:05 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: discover.c,v 1.38 2001/02/17 21:16:44 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -671,6 +671,7 @@ int setup_fallback (struct interface_info **fp, const char *file, int line) (struct iaddr *)0); status = interface_reference (fp, fallback_interface, file, line); + fallback_interface -> index = -1; interface_stash (fallback_interface); return status == ISC_R_SUCCESS; }