#ifndef lint
static char copyright[] =
-"$Id: failover.c,v 1.18 2000/06/08 21:29:02 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium. All rights reserved.\n";
+"$Id: failover.c,v 1.19 2000/06/12 20:19:21 mellon Exp $ Copyright (c) 1999-2000 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
dhcp_failover_ack_queue_remove (state, lease);
if (state -> update_queue_head) {
- if (state -> update_queue_tail -> next_pending)
- lease_dereference
- (&state -> update_queue_tail -> next_pending,
- MDL);
lease_reference (&state -> update_queue_tail -> next_pending,
lease, MDL);
lease_dereference (&state -> update_queue_tail, MDL);
{
struct lease *lp;
+ if (!(lease -> flags & ON_ACK_QUEUE))
+ return;
+
if (state -> ack_queue_head == lease) {
lease_dereference (&state -> ack_queue_head, MDL);
if (lease -> next_pending) {