Merge branch 'bugfix/mdns_send_sdptr_answer_v3.2' into 'release/v3.2'

mdns: respond to discovery with the proper pseudo name _services._dns-sd._udp (v3.2)

See merge request espressif/esp-idf!7244
This commit is contained in:
Angus Gratton 2020-01-09 13:00:53 +08:00
commit 287bee03b3

View File

@ -1251,7 +1251,7 @@ static void _mdns_create_answer_from_parsed_packet(mdns_parsed_packet_t * parsed
}
} else if (q->type == MDNS_TYPE_SDPTR) {
shared = true;
if (!_mdns_alloc_answer(&packet->answers, MDNS_TYPE_PTR, service->service, false, false)) {
if (!_mdns_alloc_answer(&packet->answers, MDNS_TYPE_SDPTR, service->service, false, false)) {
_mdns_free_tx_packet(packet);
return;
}