]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix a case where leases could wind up with too many references.
authorTed Lemon <source@isc.org>
Thu, 28 Dec 2000 23:34:08 +0000 (23:34 +0000)
committerTed Lemon <source@isc.org>
Thu, 28 Dec 2000 23:34:08 +0000 (23:34 +0000)
server/mdb.c

index eb5f222a9c61ccec8f8958aefb4d75a9d1513b82..7e81ec4833dc27816048cf5baa739eb1928bc81a 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: mdb.c,v 1.46 2000/12/11 18:56:44 neild Exp $ Copyright (c) 1996-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: mdb.c,v 1.47 2000/12/28 23:34:08 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -1511,8 +1511,8 @@ void uid_hash_delete (lease)
                                break;
                        }
                }
-               lease_dereference (&head, MDL);
        }
+       lease_dereference (&head, MDL);
 }
 
 /* Add the specified lease to the hardware address hash. */