mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-29 10:17:30 +02:00
bugfix: mdns_service_txt_set() wasn't allocating memory for TXT records
Allocation was happening later, causing possible use of stack variables of caller function, which could be invalid. Signed-off-by: Piyush Shah <piyush@espressif.com> * Original commit: espressif/esp-idf@e5e2702ca3
This commit is contained in:
committed by
suren-gabrielyan-espressif
parent
67173f6770
commit
0c17121ad7
@ -364,8 +364,7 @@ typedef struct {
|
||||
} srv_port;
|
||||
struct {
|
||||
mdns_srv_item_t * service;
|
||||
uint8_t num_items;
|
||||
mdns_txt_item_t * txt;
|
||||
mdns_txt_linked_item_t * txt;
|
||||
} srv_txt_replace;
|
||||
struct {
|
||||
mdns_srv_item_t * service;
|
||||
|
Reference in New Issue
Block a user