P2P: Clear entry.key to avoid use of uninitialized value on error path
This commit is contained in:
parent
d87e90b646
commit
e1739fb617
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue