From: Ted Lemon Date: Wed, 5 Jan 2000 18:49:47 +0000 (+0000) Subject: Don't check for pool peer if FAILOVER_PROTOCOL isn't defined. X-Git-Tag: V3-BETA-2-PATCH-1~454 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0607c8e483ce5db74698f1db844f3f3fea38037;p=thirdparty%2Fdhcp.git Don't check for pool peer if FAILOVER_PROTOCOL isn't defined. --- diff --git a/server/mdb.c b/server/mdb.c index 5bd834c1f..30b8505ab 100644 --- a/server/mdb.c +++ b/server/mdb.c @@ -22,7 +22,7 @@ #ifndef lint static char copyright[] = -"$Id: mdb.c,v 1.22 2000/01/05 18:22:07 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: mdb.c,v 1.23 2000/01/05 18:49:47 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -580,11 +580,13 @@ void new_address_range (low, high, subnet, pool) address_range [i].subnet = subnet; address_range [i].pool = pool; address_range [i].billing_class = (struct class *)0; +#if defined (FAILOVER_PROTOCOL) if (pool -> failover_peer && pool -> failover_peer -> i_am == secondary) address_range [i].flags = PEER_IS_OWNER; else address_range [i].flags = 0; +#endif address_range [i].type = dhcp_type_lease; /* Link this entry into the list. */