]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Check comp->uid instead of lease->uid when entering a lease's ID info.
authorTed Lemon <source@isc.org>
Wed, 14 Mar 2001 15:45:41 +0000 (15:45 +0000)
committerTed Lemon <source@isc.org>
Wed, 14 Mar 2001 15:45:41 +0000 (15:45 +0000)
server/mdb.c

index 87f57a94592b8bee6b1449614ed551cc532beda5..e1ad705e9faec84bdb39fd8494bdd8875857bcbb 100644 (file)
@@ -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);
        }