projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98c50f9
)
ip: fix an improper optimization: req.r.rtm_scope may be nonzero here
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 13 Aug 2016 23:30:34 +0000
(
01:30
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 13 Aug 2016 23:30:34 +0000
(
01:30
+0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/libiproute/iproute.c
patch
|
blob
|
history
diff --git
a/networking/libiproute/iproute.c
b/networking/libiproute/iproute.c
index e674e9a0d914b0c8df01a6c5942135a9324dc26d..48dc6e3d9c90ce6423af85058e0e6786afbcbffa 100644
(file)
--- a/
networking/libiproute/iproute.c
+++ b/
networking/libiproute/iproute.c
@@
-362,10
+362,9
@@
IF_FEATURE_IP_RULE(ARG_table,)
req.r.rtm_scope = RT_SCOPE_NOWHERE;
if (cmd != RTM_DELROUTE) {
+ req.r.rtm_scope = RT_SCOPE_UNIVERSE;
if (RTPROT_BOOT != 0)
req.r.rtm_protocol = RTPROT_BOOT;
- if (RT_SCOPE_UNIVERSE != 0)
- req.r.rtm_scope = RT_SCOPE_UNIVERSE;
if (RTN_UNICAST != 0)
req.r.rtm_type = RTN_UNICAST;
}