]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- Fix think-o in one-lease-per-client code. Special thanks to Shawn
authorTed Lemon <source@isc.org>
Tue, 5 Oct 1999 03:25:38 +0000 (03:25 +0000)
committerTed Lemon <source@isc.org>
Tue, 5 Oct 1999 03:25:38 +0000 (03:25 +0000)
  Clowes for his persistance in pointing out this error in the face of
  my stubborn failure to see what he was talking about!

server/dhcp.c

index 926fd4ced5986bd11fdbcb4bbc7c3af4febc70c2..c98868bf60adc071f0279781e842d7293b637125 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhcp.c,v 1.112 1999/10/05 02:46:17 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhcp.c,v 1.113 1999/10/05 03:25:38 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -931,7 +931,7 @@ void ack_lease (packet, lease, offer, when, msg)
                                        if (seek != lease &&
                                            seek -> ends > cur_time)
                                                break;
-                                       seek = lease -> n_uid;
+                                       seek = seek -> n_uid;
                                }
                                if (seek) {
                                        release_lease (seek, packet);
@@ -946,7 +946,7 @@ void ack_lease (packet, lease, offer, when, msg)
                                        if (seek != lease &&
                                            seek -> ends > cur_time)
                                                break;
-                                       seek = lease -> n_hw;
+                                       seek = seek -> n_hw;
                                }
                                if (seek) {
                                        release_lease (seek, packet);