2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 22:35:25 +00:00

[19430] dhclient now calls script with reason=FAIL even with -1 option

This commit is contained in:
Tomek Mrugalski
2017-05-18 22:00:51 +02:00
parent 9b7d458d64
commit c788d4f8d4
2 changed files with 15 additions and 0 deletions

View File

@@ -1471,6 +1471,11 @@ void bind_lease (client)
if (!quiet)
log_info("Unable to obtain a lease on first "
"try (declined). Exiting.");
/* Let's call a script and we're done */
script_init(client, "FAIL", (struct string_list *)0);
script_go(client);
finish(2);
} else {
state_init(client);
@@ -2480,6 +2485,11 @@ void state_panic (cpp)
if (!quiet)
log_info ("Unable to obtain a lease on first try.%s",
" Exiting.");
/* Let's call a script and we're done */
script_init(client, "FAIL", (struct string_list *)0);
script_go(client);
finish(2);
}