busybox: v1.25.0 upstream patches
[openwrt/openwrt.git] / package / utils / busybox / patches / 000-busybox-1.25.0-ip.patch
1 ip: fix an improper optimization: req.r.rtm_scope may be nonzero here
2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
3
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;
8
9 if (cmd != RTM_DELROUTE) {
10 + req.r.rtm_scope = RT_SCOPE_UNIVERSE;
11 if (RTPROT_BOOT != 0)
12 req.r.rtm_protocol = RTPROT_BOOT;
13 - if (RT_SCOPE_UNIVERSE != 0)
14 - req.r.rtm_scope = RT_SCOPE_UNIVERSE;
15 if (RTN_UNICAST != 0)
16 req.r.rtm_type = RTN_UNICAST;
17 }