fixed crash when using 0.0.0.0/0 subnets

This commit is contained in:
Martin Willi
2007-05-23 06:33:22 +00:00
parent b1450b48a0
commit 0f6b068259
+1
View 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;