mirror of
https://github.com/espressif/esp-protocols.git
synced 2026-07-06 00:20:49 +02:00
fix(modem): Fix netif destructor UAF
This commit is contained in:
@@ -120,6 +120,7 @@ void Netif::pause()
|
||||
|
||||
Netif::~Netif()
|
||||
{
|
||||
ppp_dte->set_read_cb(nullptr);
|
||||
if (signal.is_any(PPP_STARTED)) {
|
||||
esp_netif_action_stop(driver.base.netif, nullptr, 0, nullptr);
|
||||
signal.clear(PPP_STARTED);
|
||||
|
||||
Reference in New Issue
Block a user