* 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:
Axel Dörfler
2008-10-11 22:46:38 +00:00
parent 27e0dea9f0
commit f2e72955d8
@@ -387,7 +387,7 @@ datalink_send_datagram(net_protocol *protocol, net_domain *domain,
net_route *route = NULL; net_route *route = NULL;
status_t status; 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, status = get_device_route(domain, protocol->socket->bound_to_device,
&route); &route);
} else } else