Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Backport OOM fixes to v2.5 #156

Merged
merged 14 commits into from
Feb 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[nrf noup] zephyr: Fix receive message length
fixup! [nrf noup] Monitor supplicant state and inform applications

Sender is sending the entire structure, and receiving one byte lesser
results in two receive calls per-message, this screws up the message
parsing.

Fixes SHEL-2250.

Signed-off-by: Chaitanya Tata <[email protected]>
  • Loading branch information
krish2718 committed Feb 25, 2024
commit bf0f406bfc90dcd84435ad8307e87dde9e75d374
2 changes: 1 addition & 1 deletion wpa_supplicant/wpa_cli_zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ static void wpa_cli_recv_pending(struct wpa_ctrl *ctrl)
{
while (wpa_ctrl_pending(ctrl) > 0) {
char buf[sizeof(struct conn_msg)];
size_t len = sizeof(buf) - 1;
size_t len = sizeof(buf);

if (wpa_ctrl_recv(ctrl, buf, &len) == 0) {
struct conn_msg *msg = (struct conn_msg *)buf;
Expand Down