mdns: Fix random crash when defalt service instance queried
mdns: Fix random crash when defalt service instance queried

Merges https://github.com/espressif/esp-idf/pull/8248

espressif/esp-idf,espressif/esp-idf,espressif/esp-idf,espressif/esp-idf