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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user