From e3cae83a947f5724ec907643221bb0ea040b04e6 Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Sun, 22 Feb 2026 15:08:10 +0100 Subject: chore(slstatus): sync with upstream Commits: - wifi: always retry ioctl for ifindex (4f61bbb) - fix buffer overflow in battery state parsing (98769df) --- slstatus/components/wifi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'slstatus/components/wifi.c') diff --git a/slstatus/components/wifi.c b/slstatus/components/wifi.c index 23af201..8b33baa 100644 --- a/slstatus/components/wifi.c +++ b/slstatus/components/wifi.c @@ -110,10 +110,10 @@ } if (strcmp(ifr.ifr_name, interface) != 0) { strcpy(ifr.ifr_name, interface); - if (ioctl(ifsock, SIOCGIFINDEX, &ifr) != 0) { - warn("ioctl 'SIOCGIFINDEX':"); - return -1; - } + } + if (ioctl(ifsock, SIOCGIFINDEX, &ifr) != 0) { + warn("ioctl 'SIOCGIFINDEX':"); + return -1; } return ifr.ifr_ifindex; } -- cgit v1.2.3