the n_hw point of the current lease...not the n_uid tail.
#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"
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);
}