For unknown reason, since rev 1.1 of ifconfig.c, sin_family isn't

set properly for the mask argument.

Since I'd like to improve argument sanity checking in kernel
side, in in_control(), fix this.
This commit is contained in:
Gleb Smirnoff 2011-11-19 19:06:08 +00:00
parent 4b146ddfab
commit 8d7813e7e9

View File

@ -104,8 +104,7 @@ in_getaddr(const char *s, int which)
struct netent *np;
sin->sin_len = sizeof(*sin);
if (which != MASK)
sin->sin_family = AF_INET;
sin->sin_family = AF_INET;
if (which == ADDR) {
char *p = NULL;