]> git.ipfire.org Git - thirdparty/hostap.git/commit
dbus: Fix a potential double-free in on error path (CID 62880)
authorJouni Malinen <j@w1.fi>
Thu, 12 Jun 2014 14:26:58 +0000 (17:26 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 12 Jun 2014 16:45:02 +0000 (19:45 +0300)
commitceb4cd89c9709217d52a493d483d3d76ef3cbd44
treee00e1c2debd89ec367b8ca3fdabc030fb453a169
parent68e2b8882a735b9758e37cd760884d4a5f2e449a
dbus: Fix a potential double-free in on error path (CID 62880)

It would have been at least theoretically possible to hit the first
error in the loop and end up jumping to error handling which would call
os_free(value) without the value having been cleared after the os_free()
call at the end of the previous loop iteration.

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