espressif / esp-protocols

Collection of ESP-IDF components related to networking protocols
166 stars 115 forks source link

fix(mdns): fix mdns answer append while host is invalid #526

Closed zwx1995esp closed 3 months ago

zwx1995esp commented 3 months ago

There is a risk in this scenario:

A pending tx packets (called by the action ACTION_TX_HANDLE) which has a list of answer, while the host will be valid when the packet is created, but the host will be invalid while the packet is sending. We should double check the host is still valid when appending the answer to the packets.

This PR fix this risk.