]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- Fix a mistake that was causing the fallback interface not to be used (thanks
authorTed Lemon <source@isc.org>
Thu, 8 Jun 2000 21:14:16 +0000 (21:14 +0000)
committerTed Lemon <source@isc.org>
Thu, 8 Jun 2000 21:14:16 +0000 (21:14 +0000)
  to Christof Chen for catching this!)

common/bpf.c
common/discover.c
common/dlpi.c
common/lpf.c
common/nit.c
common/upf.c

index f1a40f4f4a65b325353623b3f746b9aa819ce512..a16c2e2690ef7153eadd6858d992831c33655bae 100644 (file)
@@ -47,7 +47,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: bpf.c,v 1.39 2000/05/16 23:02:09 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: bpf.c,v 1.40 2000/06/08 21:14:10 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -524,6 +524,7 @@ void maybe_setup_fallback ()
                if (status != ISC_R_SUCCESS)
                        log_fatal ("Can't register I/O handle for %s: %s",
                                   fbi -> name, isc_result_totext (status));
+               interface_dereference (&fbi, MDL);
        }
 }
 #endif
index f569d59e580463272d162f37854f6648844e0967..7b8bbc1d6beaef08b1a78c7e104bee67a89dcd51 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: discover.c,v 1.28 2000/05/17 16:04:00 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: discover.c,v 1.29 2000/06/08 21:14:12 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -584,7 +584,6 @@ int setup_fallback (struct interface_info **fp, const char *file, int line)
                (*dhcp_interface_setup_hook) (fallback_interface,
                                              (struct iaddr *)0);
        status = interface_reference (fp, fallback_interface, file, line);
-       interface_dereference (&fallback_interface, file, line);
        return status == ISC_R_SUCCESS;
 }
 
index 00b80296c61ce8dfbebd600570f908f462675417..3052ad871567f02cd94bbac9b19069dc74187a77 100644 (file)
@@ -84,7 +84,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dlpi.c,v 1.20 2000/05/16 23:02:15 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dlpi.c,v 1.21 2000/06/08 21:14:13 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -1315,6 +1315,7 @@ void maybe_setup_fallback ()
                if (status != ISC_R_SUCCESS)
                        log_fatal ("Can't register I/O handle for %s: %s",
                                   fbi -> name, isc_result_totext (status));
+               interface_dereference (&fbi, MDL);
        }
 }
 #endif /* USE_DLPI */
index 24b28ebd0b929e9df853f2b76edd55705c674d93..bdbc07547185c1a483df897d4dee39cf09ed2b67 100644 (file)
@@ -37,7 +37,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: lpf.c,v 1.24 2000/05/16 23:02:22 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: lpf.c,v 1.25 2000/06/08 21:14:14 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -381,6 +381,7 @@ void maybe_setup_fallback ()
                if (status != ISC_R_SUCCESS)
                        log_fatal ("Can't register I/O handle for %s: %s",
                                   fbi -> name, isc_result_totext (status));
+               interface_dereference (&fbi, MDL);
        }
 }
 #endif
index 12b542878527023752811ecf1683b00380d88d75..569065f8e5a63c03fdf71fa60940d42ce9b44a3e 100644 (file)
@@ -44,7 +44,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: nit.c,v 1.29 2000/05/16 23:02:24 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: nit.c,v 1.30 2000/06/08 21:14:15 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -419,6 +419,7 @@ void maybe_setup_fallback ()
                if (status != ISC_R_SUCCESS)
                        log_fatal ("Can't register I/O handle for %s: %s",
                                   fbi -> name, isc_result_totext (status));
+               interface_dereference (&fbi, MDL);
        }
 }
 #endif
index d590cbfdb6aaecad33012e98091bfe8ea17b5eac..10f8f2361fbcc3e8f6e43037fffe1b2c514b7061 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: upf.c,v 1.18 2000/05/16 23:02:31 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: upf.c,v 1.19 2000/06/08 21:14:16 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -365,6 +365,7 @@ void maybe_setup_fallback ()
                if (status != ISC_R_SUCCESS)
                        log_fatal ("Can't register I/O handle for %s: %s",
                                   fbi -> name, isc_result_totext (status));
+               interface_dereference (&fbi, MDL);
        }
 }
 #endif