mirror of https://github.com/arendst/Tasmota.git
Crash when calling TasmotaSerial destructor when initialized with incorrect arguments (#22036)
This commit is contained in:
parent
e8cdeaba6b
commit
f62496d164
|
@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file.
|
||||||
- Zigbee extend timeout for MCU reboot from 5s to 10s (#22009)
|
- Zigbee extend timeout for MCU reboot from 5s to 10s (#22009)
|
||||||
- Matter fix when Rules are disabled (#22016)
|
- Matter fix when Rules are disabled (#22016)
|
||||||
- BearSSL panic on ESP8266 in rare conditions (#22017)
|
- BearSSL panic on ESP8266 in rare conditions (#22017)
|
||||||
|
- Crash when calling TasmotaSerial destructor when initialized with incorrect arguments
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,9 @@ void TasmotaSerial::end(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
TasmotaSerial::~TasmotaSerial(void) {
|
TasmotaSerial::~TasmotaSerial(void) {
|
||||||
end();
|
if (m_valid) {
|
||||||
|
end();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TasmotaSerial::isValidGPIOpin(int pin) {
|
bool TasmotaSerial::isValidGPIOpin(int pin) {
|
||||||
|
|
Loading…
Reference in New Issue