diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-01-20 18:10:12 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-01-20 18:10:12 +0100 |
commit | 31dc8603eedc0140c798c9af3404a35ea190af2c (patch) | |
tree | b8115230c65e5087d48111c3db9ebf7c90f61448 /networking/route.c | |
parent | 2f5b5beb28a3ffe9d12a19b79c453c640cee2f29 (diff) | |
download | busybox-w32-31dc8603eedc0140c798c9af3404a35ea190af2c.tar.gz busybox-w32-31dc8603eedc0140c798c9af3404a35ea190af2c.tar.bz2 busybox-w32-31dc8603eedc0140c798c9af3404a35ea190af2c.zip |
ifconfig: do not accept "ifconfig eth0 up 1.2.3.4/17" (ip with mask). Closes 5786
function old new delta
ifconfig_main 1221 1237 +16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/route.c')
-rw-r--r-- | networking/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/route.c b/networking/route.c index f662031e9..4235ea72c 100644 --- a/networking/route.c +++ b/networking/route.c | |||
@@ -435,7 +435,7 @@ static NOINLINE void INET6_setroute(int action, char **args) | |||
435 | struct ifreq ifr; | 435 | struct ifreq ifr; |
436 | memset(&ifr, 0, sizeof(ifr)); | 436 | memset(&ifr, 0, sizeof(ifr)); |
437 | strncpy_IFNAMSIZ(ifr.ifr_name, devname); | 437 | strncpy_IFNAMSIZ(ifr.ifr_name, devname); |
438 | xioctl(skfd, SIOGIFINDEX, &ifr); | 438 | xioctl(skfd, SIOCGIFINDEX, &ifr); |
439 | rt.rtmsg_ifindex = ifr.ifr_ifindex; | 439 | rt.rtmsg_ifindex = ifr.ifr_ifindex; |
440 | } | 440 | } |
441 | 441 | ||