* datalink_send_datagram() can be called with a NULL protocol which I missed
with the last commit. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27984 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -387,7 +387,7 @@ datalink_send_datagram(net_protocol *protocol, net_domain *domain,
|
||||
|
||||
net_route *route = NULL;
|
||||
status_t status;
|
||||
if (protocol->socket->bound_to_device > 0) {
|
||||
if (protocol != NULL && protocol->socket->bound_to_device > 0) {
|
||||
status = get_device_route(domain, protocol->socket->bound_to_device,
|
||||
&route);
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user