1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-10 04:22:05 +03:00

LwIpIntfDev.end() - check _started to prevent crash (#9173)

This commit is contained in:
Juraj Andrássy
2024-07-31 04:53:39 +02:00
committed by GitHub
parent 07feacec46
commit 27272de623

View File

@ -349,9 +349,12 @@ boolean LwipIntfDev<RawDev>::begin(const uint8_t* macAddress, const uint16_t mtu
template<class RawDev> template<class RawDev>
void LwipIntfDev<RawDev>::end() void LwipIntfDev<RawDev>::end()
{ {
netif_remove(&_netif); if (_started)
_started = false; {
RawDev::end(); netif_remove(&_netif);
_started = false;
RawDev::end();
}
} }
template<class RawDev> template<class RawDev>