mDNS: protect MDNSResponder::queryService against misuse by d-a-v · Pull Request #7216 · esp8266/Arduino

@d-a-v

@d-a-v

devyte

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.

@d-a-v

devyte