]> git.ipfire.org Git - thirdparty/hostap.git/commit
dbus: Clean up P2P group vendor ext getter
authorJouni Malinen <j@w1.fi>
Thu, 12 Jun 2014 21:48:21 +0000 (00:48 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 12 Jun 2014 21:48:21 +0000 (00:48 +0300)
commit1851e17a64eb5efb0b4bc36ffe2aaa5fe7e0abb0
tree24067dde280ed325dcb256a120c7f7521ab792d4
parent137ff332fd279cbf070e22b8a104606447d0506b
dbus: Clean up P2P group vendor ext getter

The vendor_ext[i] = NULL setting did not make any sense since
num_vendor_ext should have been used to index the vendor_ext array. The
old code did not do any harm since i >= num_vendor_ext and none of the
already set entries could have been cleared. Anyway, better clean this
by making it skip the setting to NULL similarly to what was already done
in the P2P peer vendor ext getter.

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