aboutsummaryrefslogtreecommitdiff
path: root/lib/libifconfig/libifconfig_bridge.c
diff options
context:
space:
mode:
authorMichael Gmelin <grembo@FreeBSD.org>2023-12-20 20:21:55 +0000
committerMichael Gmelin <grembo@FreeBSD.org>2023-12-21 15:50:27 +0000
commit3d36053ca6d6a17d408c8f92c504e6135dc9d8df (patch)
treeca58a14e425dcc1c19c031ed9bbfb396909f9643 /lib/libifconfig/libifconfig_bridge.c
parentad874544d9f018bf8eef4053b5ca7b856c4674cb (diff)
downloadsrc-3d36053ca6d6a17d408c8f92c504e6135dc9d8df.tar.gz
src-3d36053ca6d6a17d408c8f92c504e6135dc9d8df.zip
Diffstat (limited to 'lib/libifconfig/libifconfig_bridge.c')
-rw-r--r--lib/libifconfig/libifconfig_bridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libifconfig/libifconfig_bridge.c b/lib/libifconfig/libifconfig_bridge.c
index e4db90f373d6..2a9bbc35858b 100644
--- a/lib/libifconfig/libifconfig_bridge.c
+++ b/lib/libifconfig/libifconfig_bridge.c
@@ -111,7 +111,7 @@ ifconfig_bridge_get_bridge_status(ifconfig_handle_t *h,
free(bridge);
return (-1);
}
- if (members.ifbic_len <= len)
+ if ((members.ifbic_len + sizeof(*members.ifbic_req)) < len)
break;
}
if (buf == NULL) {