You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the client is in STATE_RENEWING, there is a (current) probe->current_lease.
Now, when a NAK arrives the state changes (in n_dhcp4_client_probe_transition_nak) to STATE_INIT, retaining the current lease.
Then, once the DISCOVER-OFFER-REQUEST-ACK dance is over, the n_dhcp4_client_lease_select gets called. It checks the probe->current_lease is (still) not NULL and fails. The probe is not able to recover from this.
I wonder-- shouldn't be the probe->current_lease cleared in n_dhcp4_client_probe_transition_nak just like it is cleared in n_dhcp4_client_probe_transition_lifetime? Or should the custom code unref it prior calling the n_dhcp4_client_lease_select? (I will create a PR if you confirm this is a bug to be fixed here.)
The text was updated successfully, but these errors were encountered:
When the client is in STATE_RENEWING, there is a (current)
probe->current_lease
.Now, when a NAK arrives the state changes (in
n_dhcp4_client_probe_transition_nak
) to STATE_INIT, retaining the current lease.Then, once the DISCOVER-OFFER-REQUEST-ACK dance is over, the
n_dhcp4_client_lease_select
gets called. It checks theprobe->current_lease
is (still) not NULL and fails. The probe is not able to recover from this.I wonder-- shouldn't be the
probe->current_lease
cleared inn_dhcp4_client_probe_transition_nak
just like it is cleared inn_dhcp4_client_probe_transition_lifetime
? Or should the custom code unref it prior calling then_dhcp4_client_lease_select
? (I will create a PR if you confirm this is a bug to be fixed here.)The text was updated successfully, but these errors were encountered: