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:
parent
4b146ddfab
commit
8d7813e7e9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user