Made the ipv4_send_routed_data() function a bit more safe to use (now checks if the

route passed in is valid).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19050 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-10-12 09:47:25 +00:00
parent ece28c9ef8
commit 08d8ae0cff
@@ -761,6 +761,9 @@ status_t
ipv4_send_routed_data(net_protocol *_protocol, struct net_route *route,
net_buffer *buffer)
{
if (route == NULL)
return B_BAD_VALUE;
ipv4_protocol *protocol = (ipv4_protocol *)_protocol;
net_interface *interface = route->interface;