]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- Set the fallback interface index to -1 to indicate that it doesn't have
authorTed Lemon <source@isc.org>
Sat, 17 Feb 2001 21:16:44 +0000 (21:16 +0000)
committerTed Lemon <source@isc.org>
Sat, 17 Feb 2001 21:16:44 +0000 (21:16 +0000)
  one prior to calling interface_stash.

common/discover.c

index f734c92bf450a9ad2fb09f3ba28fe6ca9d4a9c2c..89ca6ad8c198f8cc3501b3757e930444251e38c2 100644 (file)
@@ -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;
 }