Skip to content

Commit 000e762

Browse files
committed
Merge pull request esp8266#853 from mpromonet/esp8266
avoid to dereference a NULL pointer if update is called before begin
2 parents eaeca12 + 7c37346 commit 000e762

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266mDNS/ESP8266mDNS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ bool MDNSResponder::begin(const char* domain){
134134
}
135135

136136
void MDNSResponder::update() {
137-
if (!_conn->next()) {
137+
if (!_conn || !_conn->next()) {
138138
return;
139139
}
140140
_parsePacket();

0 commit comments

Comments
 (0)