mDNS: protect MDNSResponder::queryService against misuse by d-a-v · Pull Request #7216 · esp8266/Arduino
| const char* p_pcProtocol, | ||
| const uint16_t p_u16Timeout /*= MDNS_QUERYSERVICES_WAIT_TIME*/) | ||
| { | ||
| if (0 == m_pUDPContext) |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this a ptr? check against nullptr?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. For coherency I sticked to this file's style.
I was afraid to modify too much for when LEAmDNS2 is coming to avoid merge complication.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters