fixed compiler warning
This commit is contained in:
@@ -1535,9 +1535,9 @@ static host_t *get_route(private_kernel_interface_t *this, host_t *dest,
|
|||||||
* - its destination net contains our destination
|
* - its destination net contains our destination
|
||||||
*/
|
*/
|
||||||
if (msg->rtm_table != IPSEC_ROUTING_TABLE
|
if (msg->rtm_table != IPSEC_ROUTING_TABLE
|
||||||
&& msg->rtm_dst_len > best
|
&& msg->rtm_dst_len > best
|
||||||
&& (msg->rtm_dst_len == 0 || /* default route */
|
&& (msg->rtm_dst_len == 0 || /* default route */
|
||||||
rta_dst.ptr && addr_in_subnet(chunk, rta_dst, msg->rtm_dst_len)))
|
(rta_dst.ptr && addr_in_subnet(chunk, rta_dst, msg->rtm_dst_len))))
|
||||||
{
|
{
|
||||||
iterator_t *ifaces, *addrs;
|
iterator_t *ifaces, *addrs;
|
||||||
iface_entry_t *iface;
|
iface_entry_t *iface;
|
||||||
|
|||||||
Reference in New Issue
Block a user