* Fixed CID 1511: protocol could be NULL.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38193 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d18fc3994c
commit
ed64d4e0f5
@ -1471,7 +1471,7 @@ ipv4_send_data(net_protocol* _protocol, net_buffer* buffer)
|
||||
// handle IP_MULTICAST_IF
|
||||
if (IN_MULTICAST(ntohl(
|
||||
((sockaddr_in*)buffer->destination)->sin_addr.s_addr))
|
||||
&& protocol->multicast_address != NULL) {
|
||||
&& protocol != NULL && protocol->multicast_address != NULL) {
|
||||
net_interface_address* address = sDatalinkModule->get_interface_address(
|
||||
protocol->multicast_address);
|
||||
if (address == NULL || (address->interface->flags & IFF_UP) == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user