diff options
author | archie <archie@FreeBSD.org> | 1999-06-05 05:52:52 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 1999-06-05 05:52:52 +0000 |
commit | d7f89ddca7bda593e462c757e7236f7be265b7ba (patch) | |
tree | 6941893c62312ff941940dd2dac20df842658773 /sbin/natd/natd.c | |
parent | 47e8c0df80372b7e332c2917c46155e79ace4a7f (diff) | |
download | FreeBSD-src-d7f89ddca7bda593e462c757e7236f7be265b7ba.zip FreeBSD-src-d7f89ddca7bda593e462c757e7236f7be265b7ba.tar.gz |
When incrementing through a SIOCGIFCONF list, enforce a lower limit of
sizeof(ifr->ifr_addr) for the variable length field ifr->ifr_addr.sa_len.
Otherwise the increment will be wrong in certain cases.
Obtained from: Whistle source tree
For the record: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> suggests
SIOCGIFCONF should be dropped in favor of a sysctl mechanism.
Diffstat (limited to 'sbin/natd/natd.c')
0 files changed, 0 insertions, 0 deletions