[PATCH] Interface List is using incorrect buffer size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From fdcea883092d42c71a88ab692c8e9d2a5238a419 Mon Sep 17 00:00:00 2001
From: Mujibur Rahiman K <mujiburrahimank@xxxxxxxxxxxxx>
Date: Wed, 14 Feb 2024 15:33:25 +0530
Subject: [PATCH] Interface List is using incorrect buffer size
To: hostap@xxxxxxxxxxxxxxxxxxx

reply_size instead sizeof(buffer) should be provided to the call of function hostapd_global_ctrl_iface_interfaces

Signed-Off-By : Mujibur Rahiman K mujiburrahimank@xxxxxxxxxxxxx
---
 hostapd/ctrl_iface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index 015a67aea..a2cb15590 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -5050,7 +5050,7 @@ static void hostapd_global_ctrl_iface_receive(int sock, void *eloop_ctx,
 			reply_len = -1;
 	} else if (os_strncmp(buf, "INTERFACES", 10) == 0) {
 		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) {
 		eloop_terminate();
 	} else {
-- 
2.17.1

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux