aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus/dbus_old_handlers.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-12-28 11:03:28 (GMT)
committerJouni Malinen <j@w1.fi>2014-12-29 13:49:05 (GMT)
commit74df9c1c43e9173c636a6038d42aeacfe699d3bb (patch)
tree0972114c7e40ff74e353389033b4e0329f99656a /wpa_supplicant/dbus/dbus_old_handlers.c
parent8193e01e5b889ee3ce9c24dc73b5d338ef5f6701 (diff)
downloadhostap-74df9c1c43e9173c636a6038d42aeacfe699d3bb.zip
hostap-74df9c1c43e9173c636a6038d42aeacfe699d3bb.tar.gz
hostap-74df9c1c43e9173c636a6038d42aeacfe699d3bb.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant/dbus/dbus_old_handlers.c')
-rw-r--r--wpa_supplicant/dbus/dbus_old_handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/dbus/dbus_old_handlers.c b/wpa_supplicant/dbus/dbus_old_handlers.c
index 588042b..0f1f5cf 100644
--- a/wpa_supplicant/dbus/dbus_old_handlers.c
+++ b/wpa_supplicant/dbus/dbus_old_handlers.c
@@ -1379,7 +1379,7 @@ DBusMessage * wpas_dbus_iface_set_blobs(DBusMessage *message,
blob->len = entry.array_len;
os_memcpy(blob->data, (u8 *) entry.bytearray_value,
entry.array_len);
- if (blob->name == NULL || blob->data == NULL) {
+ if (blob->name == NULL) {
wpa_config_free_blob(blob);
reply = dbus_message_new_error(
message, WPAS_ERROR_ADD_ERROR,