diff options
author | Michael Gmelin <grembo@FreeBSD.org> | 2023-12-20 20:21:55 +0000 |
---|---|---|
committer | Michael Gmelin <grembo@FreeBSD.org> | 2023-12-21 15:50:27 +0000 |
commit | 3d36053ca6d6a17d408c8f92c504e6135dc9d8df (patch) | |
tree | ca58a14e425dcc1c19c031ed9bbfb396909f9643 /lib/libifconfig/libifconfig_bridge.c | |
parent | ad874544d9f018bf8eef4053b5ca7b856c4674cb (diff) | |
download | src-3d36053ca6d6a17d408c8f92c504e6135dc9d8df.tar.gz src-3d36053ca6d6a17d408c8f92c504e6135dc9d8df.zip |
Diffstat (limited to 'lib/libifconfig/libifconfig_bridge.c')
-rw-r--r-- | lib/libifconfig/libifconfig_bridge.c | 2 |
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) { |