]> git.ipfire.org Git - thirdparty/dhcp.git/blobdiff - server/mdb.c
- ./configure was extended to cover many optional build features, such
[thirdparty/dhcp.git] / server / mdb.c
index 43104b4d186ef16f058d88cda3252d2cb79ff939..42b3abc6c9efd1c517b2c792dba7e05beee90a05 100644 (file)
@@ -1515,6 +1515,7 @@ void make_binding_state_transition (struct lease *lease)
              case FTS_ABANDONED:
              case FTS_RESET:
                lease -> next_binding_state = FTS_FREE;
+#if defined(FAILOVER_PROTOCOL)
                /* If we are not in partner_down, leases don't go from
                   EXPIRED to FREE on a timeout - only on an update.
                   If we're in partner_down, they expire at mclt past
@@ -1524,6 +1525,7 @@ void make_binding_state_transition (struct lease *lease)
                        lease -> tsfp =
                            (lease -> pool -> failover_peer -> me.stos +
                             lease -> pool -> failover_peer -> mclt);
+#endif /* FAILOVER_PROTOCOL */
                break;
 
              case FTS_FREE: