mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 02:36:35 +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; }
|
if (ip != nullptr) { *ip = *ip_dns; }
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
*ip = *IP4_ADDR_ANY;
|
if (ip != nullptr) { *ip = *IP4_ADDR_ANY; }
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
String DNSGetIPStr(uint32_t idx)
|
String DNSGetIPStr(uint32_t idx)
|
||||||
|
@ -243,7 +243,7 @@ bool EthernetGetIP(IPAddress *ip) {
|
|||||||
if (ip != nullptr) { *ip = lip; }
|
if (ip != nullptr) { *ip = lip; }
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
*ip = IPAddress();
|
if (ip != nullptr) { *ip = IPAddress(); }
|
||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
// IPv4 only
|
// IPv4 only
|
||||||
|
Loading…
x
Reference in New Issue
Block a user