1 ip: fix an improper optimization: req.r.rtm_scope may be nonzero here
2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
4 --- a/networking/libiproute/iproute.c
5 +++ b/networking/libiproute/iproute.c
6 @@ -362,10 +362,9 @@ IF_FEATURE_IP_RULE(ARG_table,)
7 req.r.rtm_scope = RT_SCOPE_NOWHERE;
9 if (cmd != RTM_DELROUTE) {
10 + req.r.rtm_scope = RT_SCOPE_UNIVERSE;
12 req.r.rtm_protocol = RTPROT_BOOT;
13 - if (RT_SCOPE_UNIVERSE != 0)
14 - req.r.rtm_scope = RT_SCOPE_UNIVERSE;
16 req.r.rtm_type = RTN_UNICAST;