acd: Fix updating prev pointer in acd_remove

Fixes: 3a788b6e8b ("dhcp: remove acd handle when stopping dhcp")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
Axel Lin 2021-05-14 13:48:43 +08:00
parent b538bff383
commit 919dc2019a

View File

@ -164,6 +164,7 @@ acd_remove(struct netif *netif, struct acd *acd)
}
return;
}
prev = acd2;
}
LWIP_ASSERT(("acd_remove(): acd not on list\n"), 0);
}