Skip to content

Commit

Permalink
Merge branch 'bugfix/dhcps_remove_record_when_request_nak' into 'master'
Browse files Browse the repository at this point in the history
lw-IP: Fix DHCP Server to remove clients record if request not acked

Closes IDFGH-4594

See merge request espressif/esp-idf!12120
  • Loading branch information
david-cermak committed Jun 24, 2021
2 parents ec22b49 + 96911fb commit 90a2a15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lwip/apps/dhcpserver/dhcpserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ static s16_t parse_msg(struct dhcps_msg *m, u16_t len)

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);
Expand Down

0 comments on commit 90a2a15

Please sign in to comment.