aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_cli.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2014-09-26 12:26:43 (GMT)
committerJouni Malinen <j@w1.fi>2014-09-26 12:45:53 (GMT)
commit063f85043d63eaf8d59e636cca9fa24057f73b70 (patch)
treeb00cf812af16585363f6409e1ad1c7264f355127 /wpa_supplicant/wpa_cli.c
parentfa0e91767d5ce18eafc7efe00a7c4dabaffba118 (diff)
downloadhostap-063f85043d63eaf8d59e636cca9fa24057f73b70.zip
hostap-063f85043d63eaf8d59e636cca9fa24057f73b70.tar.gz
hostap-063f85043d63eaf8d59e636cca9fa24057f73b70.tar.bz2
wpa_cli: Increase event buffer size to 4096 bytes
Number of other buffers were already increased to this size, but the buffer used for receiving unsolicited event messages from wpa_supplicant (e.g., for wpa_cli action scripts) was still at the older 256 byte size. This could result in some events getting truncated. Avoid this by using the same 4096 byte buffer size here as in the other places receiving messages from wpa_supplicant. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/wpa_cli.c')
-rw-r--r--wpa_supplicant/wpa_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
index 3b48c93..d380626 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -3385,7 +3385,7 @@ static void wpa_cli_recv_pending(struct wpa_ctrl *ctrl, int action_monitor)
return;
}
while (wpa_ctrl_pending(ctrl) > 0) {
- char buf[256];
+ char buf[4096];
size_t len = sizeof(buf) - 1;
if (wpa_ctrl_recv(ctrl, buf, &len) == 0) {
buf[len] = '\0';