Skip to content

Commit

Permalink
Fix off-by-one bug in FreeBSD network implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
sanxiyn authored and GuillaumeGomez committed May 5, 2024
1 parent 717126a commit 50e0e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/freebsd/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl NetworksInner {
}
}
let mut data: libc::ifmibdata = MaybeUninit::zeroed().assume_init();
for row in 1..nb_interfaces {
for row in 1..=nb_interfaces {
let mib = [
libc::CTL_NET,
libc::PF_LINK,
Expand Down

0 comments on commit 50e0e3b

Please sign in to comment.