fixed compiler warning
authorMartin Willi <martin@strongswan.org>
Mon, 16 Jul 2007 07:10:14 +0000 (07:10 -0000)
committerMartin Willi <martin@strongswan.org>
Mon, 16 Jul 2007 07:10:14 +0000 (07:10 -0000)
src/charon/kernel/kernel_interface.c

index 18e67cd..64448e6 100644 (file)
@@ -1535,9 +1535,9 @@ static host_t *get_route(private_kernel_interface_t *this, host_t *dest,
                                 * - its destination net contains our destination
                                 */
                                if (msg->rtm_table != IPSEC_ROUTING_TABLE
-                               &&  msg->rtm_dst_len > best
-                               && (msg->rtm_dst_len == 0 || /* default route */
-                                       rta_dst.ptr && addr_in_subnet(chunk, rta_dst, msg->rtm_dst_len)))
+                                       &&  msg->rtm_dst_len > best
+                                       && (msg->rtm_dst_len == 0 || /* default route */
+                                       (rta_dst.ptr && addr_in_subnet(chunk, rta_dst, msg->rtm_dst_len))))
                                {
                                        iterator_t *ifaces, *addrs;
                                        iface_entry_t *iface;