From: Brad Kemp Date: Fri, 5 Feb 2021 20:46:49 +0000 (-0500) Subject: dbus: Fix IEs getter to use wpa_bss_ie_ptr() X-Git-Tag: hostap_2_10~650 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b916c9fd548c88e8c6db7f6f2c299cb6f66afff;p=thirdparty%2Fhostap.git dbus: Fix IEs getter to use wpa_bss_ie_ptr() The wpa_bss structure's last element is an empty array. The forgotten code here assumed that the array of IEs was contiguous to the wpa_bss structure. This is not always the case anymore. Update this missed case to use the new wpa_bss_ie_ptr() wrapper to send the correct array of IEs over DBus. Fixes: be7ee264f654 ("BSS: Use wrapper function for getting a pointer to the IE buffer") Signed-off-by: Brad Kemp --- diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c index 1e326a070..445434cf2 100644 --- a/wpa_supplicant/dbus/dbus_new_handlers.c +++ b/wpa_supplicant/dbus/dbus_new_handlers.c @@ -5082,8 +5082,8 @@ dbus_bool_t wpas_dbus_getter_bss_ies( return FALSE; return wpas_dbus_simple_array_property_getter(iter, DBUS_TYPE_BYTE, - res + 1, res->ie_len, - error); + wpa_bss_ie_ptr(res), + res->ie_len, error); }