From: Ted Lemon Date: Tue, 5 Oct 1999 03:25:38 +0000 (+0000) Subject: - Fix think-o in one-lease-per-client code. Special thanks to Shawn X-Git-Tag: BCTEL_SPECIAL_19991124~151 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0bec34702219a25362c18ea749bcb10fd75ec98;p=thirdparty%2Fdhcp.git - Fix think-o in one-lease-per-client code. Special thanks to Shawn Clowes for his persistance in pointing out this error in the face of my stubborn failure to see what he was talking about! --- diff --git a/server/dhcp.c b/server/dhcp.c index 926fd4ced..c98868bf6 100644 --- a/server/dhcp.c +++ b/server/dhcp.c @@ -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);