diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2011-12-16 13:30:17 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2011-12-16 13:30:17 +0000 |
commit | 92ed4e1a244dc14ab9854b950076f24ed015ea8d (patch) | |
tree | 8d11761f782eede94201a57f3a547df26aefbdae /sbin/ifconfig/af_inet.c | |
parent | 9ee4b7eb6465163010bb6489b04c389f974c2c2f (diff) | |
download | src-92ed4e1a244dc14ab9854b950076f24ed015ea8d.tar.gz src-92ed4e1a244dc14ab9854b950076f24ed015ea8d.zip |
Since size of struct in_aliasreq has just been changed in r228571,
and thus ifconfig(8) needs recompile, it is a good chance to make
parameter checks on SIOCAIFADDR arguments more strict.
Notes
Notes:
svn path=/head/; revision=228574
Diffstat (limited to 'sbin/ifconfig/af_inet.c')
-rw-r--r-- | sbin/ifconfig/af_inet.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/ifconfig/af_inet.c b/sbin/ifconfig/af_inet.c index bcd17c4f4957..c73337374be4 100644 --- a/sbin/ifconfig/af_inet.c +++ b/sbin/ifconfig/af_inet.c @@ -126,6 +126,7 @@ in_getaddr(const char *s, int which) *p = '/'; errx(1, "%s: bad value (width %s)", s, errstr); } + min->sin_family = AF_INET; min->sin_len = sizeof(*min); min->sin_addr.s_addr = htonl(~((1LL << (32 - masklen)) - 1) & 0xffffffff); |