mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
avoid to dereference a NULL pointer if update is called before begin
This commit is contained in:
parent
cf424a9290
commit
7c37346839
@ -134,7 +134,7 @@ bool MDNSResponder::begin(const char* domain){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MDNSResponder::update() {
|
void MDNSResponder::update() {
|
||||||
if (!_conn->next()) {
|
if (!_conn || !_conn->next()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_parsePacket();
|
_parsePacket();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user