mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-17 17:43:06 -05:00
D-Bus(old): Remove duplicated blob->data check
This was already verified to be non-NULL above and there is no point in having an extra check after the pointer has already been dereferenced. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
8193e01e5b
commit
74df9c1c43
@ -1379,7 +1379,7 @@ DBusMessage * wpas_dbus_iface_set_blobs(DBusMessage *message,
|
|||||||
blob->len = entry.array_len;
|
blob->len = entry.array_len;
|
||||||
os_memcpy(blob->data, (u8 *) entry.bytearray_value,
|
os_memcpy(blob->data, (u8 *) entry.bytearray_value,
|
||||||
entry.array_len);
|
entry.array_len);
|
||||||
if (blob->name == NULL || blob->data == NULL) {
|
if (blob->name == NULL) {
|
||||||
wpa_config_free_blob(blob);
|
wpa_config_free_blob(blob);
|
||||||
reply = dbus_message_new_error(
|
reply = dbus_message_new_error(
|
||||||
message, WPAS_ERROR_ADD_ERROR,
|
message, WPAS_ERROR_ADD_ERROR,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user