mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
P2P: Clear entry.key to avoid use of uninitialized value on error path
This commit is contained in:
parent
d87e90b646
commit
e1739fb617
@ -85,6 +85,7 @@ DBusMessage * wpas_dbus_handler_p2p_find(DBusMessage *message,
|
||||
u8 *req_dev_types = NULL;
|
||||
|
||||
dbus_message_iter_init(message, &iter);
|
||||
entry.key = NULL;
|
||||
|
||||
if (!wpa_dbus_dict_open_read(&iter, &iter_dict))
|
||||
goto error;
|
||||
@ -192,6 +193,7 @@ DBusMessage * wpas_dbus_handler_p2p_extendedlisten(
|
||||
DBusMessageIter iter_dict;
|
||||
|
||||
dbus_message_iter_init(message, &iter);
|
||||
entry.key = NULL;
|
||||
|
||||
if (!wpa_dbus_dict_open_read(&iter, &iter_dict))
|
||||
goto error;
|
||||
@ -233,6 +235,7 @@ DBusMessage * wpas_dbus_handler_p2p_presence_request(
|
||||
DBusMessageIter iter_dict;
|
||||
|
||||
dbus_message_iter_init(message, &iter);
|
||||
entry.key = NULL;
|
||||
|
||||
if (!wpa_dbus_dict_open_read(&iter, &iter_dict))
|
||||
goto error;
|
||||
|
Loading…
Reference in New Issue
Block a user