fixed crash when using 0.0.0.0/0 subnets
authorMartin Willi <martin@strongswan.org>
Wed, 23 May 2007 06:33:22 +0000 (06:33 -0000)
committerMartin Willi <martin@strongswan.org>
Wed, 23 May 2007 06:33:22 +0000 (06:33 -0000)
src/charon/kernel/kernel_interface.c

index 42886b2..d82783b 100644 (file)
@@ -1002,6 +1002,7 @@ static status_t manage_srcroute(private_kernel_interface_t *this, int nlmsg_type
                half.dst_net = chunk_alloca(route->dst_net.len);
                memset(half.dst_net.ptr, 0, half.dst_net.len);
                half.src_ip = route->src_ip;
+               half.gateway = route->gateway;
                half.if_index = route->if_index;
                half.prefixlen = 1;