2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 05:47:45 +00:00

Report failure in the event of a lease conflict; notice if lease database rewrite fails

This commit is contained in:
Ted Lemon 1996-06-11 08:14:28 +00:00
parent 08804a9a44
commit a0aee5f011
2 changed files with 6 additions and 2 deletions

View File

@ -400,6 +400,7 @@ int supersede_lease (comp, lease, commit)
comp -> hardware_addr.hlen))))) {
warn ("Lease conflict at %s",
piaddr (comp -> ip_addr));
return 0;
} else {
/* If there's a Unique ID, dissociate it from the hash
table if necessary, and always free it. */
@ -650,7 +651,8 @@ void write_leases ()
write_lease (l);
}
}
commit_leases ();
if (!commit_leases ())
error ("Can't commit leases to new database: %m");
}
void dump_subnets ()

View File

@ -400,6 +400,7 @@ int supersede_lease (comp, lease, commit)
comp -> hardware_addr.hlen))))) {
warn ("Lease conflict at %s",
piaddr (comp -> ip_addr));
return 0;
} else {
/* If there's a Unique ID, dissociate it from the hash
table if necessary, and always free it. */
@ -650,7 +651,8 @@ void write_leases ()
write_lease (l);
}
}
commit_leases ();
if (!commit_leases ())
error ("Can't commit leases to new database: %m");
}
void dump_subnets ()