kernel-netlink: Check return value of both halfs when installing default route in main table
This commit is contained in:
1 parent
d51a28bd5c
commit
0af96ad5e7
1 file changed
+4
-4
@@ -2586,11 +2586,11 @@ static status_t manage_srcroute(private_kernel_netlink_net_t *this,
|
||||
memset(half_net.ptr, 0, half_net.len);
|
||||
half_prefixlen = 1;
|
||||
|
||||
status = manage_srcroute(this, nlmsg_type, flags, half_net, half_prefixlen,
|
||||
gateway, src_ip, if_name);
|
||||
status = manage_srcroute(this, nlmsg_type, flags, half_net,
|
||||
half_prefixlen, gateway, src_ip, if_name);
|
||||
half_net.ptr[0] |= 0x80;
|
||||
status = manage_srcroute(this, nlmsg_type, flags, half_net, half_prefixlen,
|
||||
gateway, src_ip, if_name);
|
||||
status |= manage_srcroute(this, nlmsg_type, flags, half_net,
|
||||
half_prefixlen, gateway, src_ip, if_name);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user