]> granicus.if.org Git - esp-idf/commit
mdns: fixed crash on free undefined ptr after skipped strdup
authorDavid Cermak <cermak@espressif.com>
Fri, 25 Jan 2019 16:19:13 +0000 (17:19 +0100)
committerDavid Cermak <cermak@espressif.com>
Mon, 28 Jan 2019 19:17:37 +0000 (20:17 +0100)
commit64757c022870d8ec1f19b57e9a761550d93d6e77
tree193c19e0787c9c29afb026e003219aa82b5fba6d
parent76f0dda3a4cf0f4aeef5c614650a7e8c6681baa4
mdns: fixed crash on free undefined ptr after skipped strdup

Shortcircuit evaluation may cause skip of _mdns_strdup_check of any further question field, which after clear_rx_packet freed undefined memory.
Fixes https://ezredmine.espressif.cn:8765/issues/28465
components/mdns/mdns.c