Fix INTERFACES command buffer size to allow more data
reply_size instead sizeof(buffer) should be provided to
hostapd_global_ctrl_iface_interfaces() when processing INTERFACES
commands. The previous use of sizeof(buffer) used a significantly
shorter limit (256 vs. 4096 bytes) for the output and this could have
resulted in unnecessary truncation of the output.
Fixes: 618f5d01b0
("hostapd: Add INTERFACES ctrl_iface command")
Signed-Off-By : Mujibur Rahiman K mujiburrahimank@maxlinear.com
This commit is contained in:
parent
b483ceafc4
commit
16abdac809
1 changed files with 1 additions and 1 deletions
|
@ -5359,7 +5359,7 @@ static void hostapd_global_ctrl_iface_receive(int sock, void *eloop_ctx,
|
||||||
reply_len = -1;
|
reply_len = -1;
|
||||||
} else if (os_strncmp(buf, "INTERFACES", 10) == 0) {
|
} else if (os_strncmp(buf, "INTERFACES", 10) == 0) {
|
||||||
reply_len = hostapd_global_ctrl_iface_interfaces(
|
reply_len = hostapd_global_ctrl_iface_interfaces(
|
||||||
interfaces, buf + 10, reply, sizeof(buffer));
|
interfaces, buf + 10, reply, reply_size);
|
||||||
} else if (os_strcmp(buf, "TERMINATE") == 0) {
|
} else if (os_strcmp(buf, "TERMINATE") == 0) {
|
||||||
eloop_terminate();
|
eloop_terminate();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue