From 3a17c8e3c546a4014fb41a05cc46ddcf69304044 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 29 Feb 2024 10:12:15 -0800 Subject: [PATCH] nl80211util: check l_genl_attr_recurse return in extract_nested Caught by static analysis, the recurse operation return was not being checked. --- src/nl80211util.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/nl80211util.c b/src/nl80211util.c index 0f45c905..3f9a43ac 100644 --- a/src/nl80211util.c +++ b/src/nl80211util.c @@ -136,9 +136,7 @@ static bool extract_nested(const void *data, uint16_t len, void *o) const struct l_genl_attr *outer = data; struct l_genl_attr *nested = o; - l_genl_attr_recurse(outer, nested); - - return true; + return l_genl_attr_recurse(outer, nested); } static bool extract_u8(const void *data, uint16_t len, void *o)