n-dhcp4: arm timers in bound state

Arm timers when the bound state is reached, otherwise the lease is
never renewed.

https://github.com/nettools/n-dhcp4/pull/4
This commit is contained in:
Beniamino Galvani 2019-08-21 09:12:08 +02:00
parent 686c6b0032
commit 687d0dd95e

View file

@ -1009,7 +1009,7 @@ int n_dhcp4_client_probe_transition_accept(NDhcp4ClientProbe *probe, NDhcp4Incom
probe->state = N_DHCP4_CLIENT_PROBE_STATE_BOUND;
/* XXX: trigger timers */
n_dhcp4_client_arm_timer (probe->client);
break;