diff options
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index f62761c..675cf66 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -750,8 +750,8 @@ in_getaddr(s, which) if (which != MASK) sin->sin_family = AF_INET; - if ((val = inet_addr(s)) != -1) - sin->sin_addr.s_addr = val; + if (inet_aton(s, &sin->sin_addr)) + ; else if (hp = gethostbyname(s)) bcopy(hp->h_addr, (char *)&sin->sin_addr, hp->h_length); else if (np = getnetbyname(s)) |