mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-21 09:46:31 +00:00
Fix crash when getting IP address (#17576)
This commit is contained in:
parent
555b434361
commit
dfc01cd3a4
@ -639,7 +639,7 @@ bool DNSGetIP(IPAddress *ip, uint32_t idx)
|
||||
if (ip != nullptr) { *ip = *ip_dns; }
|
||||
return true;
|
||||
}
|
||||
*ip = *IP4_ADDR_ANY;
|
||||
if (ip != nullptr) { *ip = *IP4_ADDR_ANY; }
|
||||
return false;
|
||||
}
|
||||
String DNSGetIPStr(uint32_t idx)
|
||||
|
@ -243,7 +243,7 @@ bool EthernetGetIP(IPAddress *ip) {
|
||||
if (ip != nullptr) { *ip = lip; }
|
||||
return true;
|
||||
}
|
||||
*ip = IPAddress();
|
||||
if (ip != nullptr) { *ip = IPAddress(); }
|
||||
return false;
|
||||
#else
|
||||
// IPv4 only
|
||||
|
Loading…
x
Reference in New Issue
Block a user