]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- Error in rt16831 repaired...append the n_hw tail of the insert point to
authorDavid Hankins <dhankins@isc.org>
Fri, 4 May 2007 21:46:50 +0000 (21:46 +0000)
committerDavid Hankins <dhankins@isc.org>
Fri, 4 May 2007 21:46:50 +0000 (21:46 +0000)
  the n_hw point of the current lease...not the n_uid tail.

server/mdb.c

index efbd433ba3f0c1a7cd65f506feaac52a9cab112d..910c72dca91f29225000fa209bb427074c3147c4 100644 (file)
@@ -34,7 +34,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: mdb.c,v 1.87 2007/04/26 20:06:25 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium.  All rights reserved.\n";
+"$Id: mdb.c,v 1.88 2007/05/04 21:46:50 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -1910,7 +1910,7 @@ hw_hash_add(struct lease *lease)
                                          lease, MDL);
                } else /* (prev != NULL) */ {
                        if(prev->n_hw != NULL) {
-                               lease_reference(&lease->n_hw, prev->n_uid,
+                               lease_reference(&lease->n_hw, prev->n_hw,
                                                MDL);
                                lease_dereference(&prev->n_hw, MDL);
                        }