Merge branch 'bugfix/dhcps_remove_record_when_request_nak' into 'master'

lw-IP: Fix DHCP Server to remove clients record if request not acked

Closes IDFGH-4594

See merge request espressif/esp-idf!12120
This commit is contained in:
David Čermák 2021-06-24 16:31:43 +00:00
commit 90a2a150dd

View File

@ -916,7 +916,7 @@ POOL_CHECK:
s16_t ret = parse_options(&m->options[4], len);;
if (ret == DHCPS_STATE_RELEASE) {
if (ret == DHCPS_STATE_RELEASE || ret == DHCPS_STATE_NAK) {
if (pnode != NULL) {
node_remove_from_list(&plist, pnode);
free(pnode);