Fix external radio work debug printing on removal
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 16 May 2016 16:04:54 +0000 (19:04 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 16 May 2016 16:04:54 +0000 (19:04 +0300)
commit7d1007a6740a49b6e6bb0e91808ebb8fc9d5789d
treed265c211c086d9f4b80510e044cad16a7b1ee289
parentf260ce4be866519d3c80c3f3fa6cfc0df9284779
Fix external radio work debug printing on removal

work->type was pointing to the allocated work->ctx buffer and the debug
print in radio_work_free() ended up using freed memory if a started
external radio work was removed as part of FLUSH command operations. Fix
this by updating work->type to point to a constant string in case the
dynamic version gets freed.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/ctrl_iface.c