]> git.ipfire.org Git - thirdparty/hostap.git/commit
dbus: Initialize temporary entry properly (CID 62877)
authorJouni Malinen <j@w1.fi>
Thu, 12 Jun 2014 17:02:00 +0000 (20:02 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 12 Jun 2014 21:27:15 +0000 (00:27 +0300)
commit6446420b24996adf584184d41e8df2e717aef1ba
tree9ef221d35f8f64b2b6936113e0634c9a2460e7c8
parent70d953736145190dd3af1b39248a853b31b03ee6
dbus: Initialize temporary entry properly (CID 62877)

The tmpentry variable was not initialized and
_wpa_dbus_dict_entry_get_byte_array() does not set tmpentry.type, so it
would have been possible for the error path to end up trying to free
unexpected type of an entry or not free the memory at all.

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