2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-09-01 14:55:30 +00:00

- Set the fallback interface index to -1 to indicate that it doesn't have

one prior to calling interface_stash.
This commit is contained in:
Ted Lemon
2001-02-17 21:16:44 +00:00
parent 6f7081bdc4
commit fbd9c67bed

View File

@@ -43,7 +43,7 @@
#ifndef lint #ifndef lint
static char copyright[] = 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 */ #endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
@@ -671,6 +671,7 @@ int setup_fallback (struct interface_info **fp, const char *file, int line)
(struct iaddr *)0); (struct iaddr *)0);
status = interface_reference (fp, fallback_interface, file, line); status = interface_reference (fp, fallback_interface, file, line);
fallback_interface -> index = -1;
interface_stash (fallback_interface); interface_stash (fallback_interface);
return status == ISC_R_SUCCESS; return status == ISC_R_SUCCESS;
} }