]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix external radio work stopping to not read freed memory
authorJouni Malinen <j@w1.fi>
Sat, 31 May 2014 19:58:51 +0000 (22:58 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 31 May 2014 19:58:51 +0000 (22:58 +0300)
commitdf48efc5aba6e4f360cd41cac67aa1859607ea2c
tree96fe8588251ab42964e69caa2b387d513ec4a4ef
parent13c330385ab5fbc566c75207b1c2b1b36a25de0a
Fix external radio work stopping to not read freed memory

The dynamically allocated struct wpa_external_work contains the name of
the radio work in the type field and this is used in a debug print
within radio_work_done(). Re-order radio_work_done() and os_free() calls
on couple of paths where the memory was freed before that final user of
the buffer.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/ctrl_iface.c