]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WNM: Fix the length of WNM_BSS_QUERY control interface command
authorMatti Gottlieb <matti.gottlieb@intel.com>
Mon, 19 Jan 2015 01:44:04 +0000 (20:44 -0500)
committerJouni Malinen <j@w1.fi>
Mon, 19 Jan 2015 22:47:41 +0000 (00:47 +0200)
The length should be 14 and not 10.
The current situation causes failure during parsing of the command.

Signed-off-by: Matti Gottlieb <matti.gottlieb@intel.com>
wpa_supplicant/ctrl_iface.c

index c55e646ec60af4c936d5c5fa9658a04f4359eb8d..4c96fcbc7498ae2e3d3f6f7892de5cbccf582e70 100644 (file)
@@ -7905,8 +7905,8 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
        } else if (os_strncmp(buf, "WNM_SLEEP ", 10) == 0) {
                if (wpas_ctrl_iface_wnm_sleep(wpa_s, buf + 10))
                        reply_len = -1;
-       } else if (os_strncmp(buf, "WNM_BSS_QUERY ", 10) == 0) {
-               if (wpas_ctrl_iface_wnm_bss_query(wpa_s, buf + 10))
+       } else if (os_strncmp(buf, "WNM_BSS_QUERY ", 14) == 0) {
+               if (wpas_ctrl_iface_wnm_bss_query(wpa_s, buf + 14))
                                reply_len = -1;
 #endif /* CONFIG_WNM */
        } else if (os_strcmp(buf, "FLUSH") == 0) {