From fbd9c67beda53edbfdaeb0fb8caf2312e6e5d097 Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Sat, 17 Feb 2001 21:16:44 +0000 Subject: [PATCH] - Set the fallback interface index to -1 to indicate that it doesn't have one prior to calling interface_stash. --- common/discover.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/discover.c b/common/discover.c index f734c92b..89ca6ad8 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; }