]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Accept DPP_CONFIGURATION_SIGN without double space before parameters
authorJouni Malinen <jouni@codeaurora.org>
Fri, 21 Dec 2018 09:42:01 +0000 (11:42 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 21 Dec 2018 10:02:57 +0000 (12:02 +0200)
Make this command more convenient to use by not requiring two space
characters between the command and the first parameter.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
hostapd/ctrl_iface.c
wpa_supplicant/ctrl_iface.c

index 75f12e543f210ddb369f5bfa34db2654d9cf15bf..a0604ed09386611c57d9f7f7b94b446bce36caf9 100644 (file)
@@ -3229,7 +3229,7 @@ static int hostapd_ctrl_iface_receive_process(struct hostapd_data *hapd,
                if (hostapd_dpp_configurator_remove(hapd, buf + 24) < 0)
                        reply_len = -1;
        } else if (os_strncmp(buf, "DPP_CONFIGURATOR_SIGN ", 22) == 0) {
-               if (hostapd_dpp_configurator_sign(hapd, buf + 22) < 0)
+               if (hostapd_dpp_configurator_sign(hapd, buf + 21) < 0)
                        reply_len = -1;
        } else if (os_strncmp(buf, "DPP_CONFIGURATOR_GET_KEY ", 25) == 0) {
                reply_len = hostapd_dpp_configurator_get_key(hapd,
index 951989a102fad55d8d8deaf71016558b5a7e600a..be976a64601254e5c9fe4db1d9589ef97e346bc8 100644 (file)
@@ -10610,7 +10610,7 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
                if (wpas_dpp_configurator_remove(wpa_s, buf + 24) < 0)
                        reply_len = -1;
        } else if (os_strncmp(buf, "DPP_CONFIGURATOR_SIGN ", 22) == 0) {
-               if (wpas_dpp_configurator_sign(wpa_s, buf + 22) < 0)
+               if (wpas_dpp_configurator_sign(wpa_s, buf + 21) < 0)
                        reply_len = -1;
        } else if (os_strncmp(buf, "DPP_CONFIGURATOR_GET_KEY ", 25) == 0) {
                reply_len = wpas_dpp_configurator_get_key(wpa_s, atoi(buf + 25),