Use source address in get_nexthop() call
[strongswan.git] / src / libhydra / plugins / kernel_netlink / kernel_netlink_net.c
index 287640b..ecd265d 100644 (file)
@@ -1443,9 +1443,9 @@ METHOD(kernel_net_t, get_source_addr, host_t*,
 }
 
 METHOD(kernel_net_t, get_nexthop, host_t*,
-       private_kernel_netlink_net_t *this, host_t *dest)
+       private_kernel_netlink_net_t *this, host_t *dest, host_t *src)
 {
-       return get_route(this, dest, TRUE, NULL);
+       return get_route(this, dest, TRUE, src);
 }
 
 /**