summaryrefslogtreecommitdiff
path: root/server/mdb.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2000-01-05 18:49:47 +0000
committerTed Lemon <source@isc.org>2000-01-05 18:49:47 +0000
commitd0607c8e483ce5db74698f1db844f3f3fea38037 (patch)
treeb4b570c968df520cab098c4c14c7be694fc8b5b6 /server/mdb.c
parentf36d5b137b6555870d1e836c155a6fae3c68e6bc (diff)
downloadisc-dhcp-d0607c8e483ce5db74698f1db844f3f3fea38037.tar.gz
Don't check for pool peer if FAILOVER_PROTOCOL isn't defined.
Diffstat (limited to 'server/mdb.c')
-rw-r--r--server/mdb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/mdb.c b/server/mdb.c
index 5bd834c1..30b8505a 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. */