From: Ted Lemon Date: Wed, 14 Mar 2001 15:45:41 +0000 (+0000) Subject: Check comp->uid instead of lease->uid when entering a lease's ID info. X-Git-Tag: V3-BETA-2-PATCH-19~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0240e57c4625cee2148d14835ed9339bb8008d62;p=thirdparty%2Fdhcp.git Check comp->uid instead of lease->uid when entering a lease's ID info. --- diff --git a/server/mdb.c b/server/mdb.c index 87f57a945..e1ad705e9 100644 --- a/server/mdb.c +++ b/server/mdb.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: mdb.c,v 1.53 2001/02/15 21:34:07 neild Exp $ Copyright (c) 1996-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: mdb.c,v 1.54 2001/03/14 15:45:41 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -933,7 +933,7 @@ int supersede_lease (comp, lease, commit, propogate, pimmediate) } /* Record the lease in the uid hash if necessary. */ - if (enter_uid && lease -> uid) { + if (enter_uid && comp -> uid) { uid_hash_add (comp); }