1
0
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:
mpromonet 2015-10-04 17:42:52 +02:00
parent cf424a9290
commit 7c37346839

View File

@ -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();