aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-12-21 09:42:01 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-21 10:02:57 (GMT)
commit53d5de6f1de409ad15efced7ca04608f22c6c369 (patch)
tree48441a68deffc30dcc8e52d1892a51ce041c0281 /hostapd
parent5b82cdbe8bc7574566b1f87adefb4d923c273018 (diff)
downloadhostap-53d5de6f1de409ad15efced7ca04608f22c6c369.zip
hostap-53d5de6f1de409ad15efced7ca04608f22c6c369.tar.gz
hostap-53d5de6f1de409ad15efced7ca04608f22c6c369.tar.bz2
DPP: Accept DPP_CONFIGURATION_SIGN without double space before parameters
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>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/ctrl_iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index 75f12e5..a0604ed 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -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,