mirror of
https://github.com/sheumann/hush.git
synced 2025-01-03 00:31:16 +00:00
ip: fix an improper optimization: req.r.rtm_scope may be nonzero here
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
98c50f93fe
commit
34ecc3b7ae
@ -362,10 +362,9 @@ IF_FEATURE_IP_RULE(ARG_table,)
|
|||||||
req.r.rtm_scope = RT_SCOPE_NOWHERE;
|
req.r.rtm_scope = RT_SCOPE_NOWHERE;
|
||||||
|
|
||||||
if (cmd != RTM_DELROUTE) {
|
if (cmd != RTM_DELROUTE) {
|
||||||
|
req.r.rtm_scope = RT_SCOPE_UNIVERSE;
|
||||||
if (RTPROT_BOOT != 0)
|
if (RTPROT_BOOT != 0)
|
||||||
req.r.rtm_protocol = RTPROT_BOOT;
|
req.r.rtm_protocol = RTPROT_BOOT;
|
||||||
if (RT_SCOPE_UNIVERSE != 0)
|
|
||||||
req.r.rtm_scope = RT_SCOPE_UNIVERSE;
|
|
||||||
if (RTN_UNICAST != 0)
|
if (RTN_UNICAST != 0)
|
||||||
req.r.rtm_type = RTN_UNICAST;
|
req.r.rtm_type = RTN_UNICAST;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user