diff --git a/src/add-ons/kernel/network/protocols/ipv4/ipv4.cpp b/src/add-ons/kernel/network/protocols/ipv4/ipv4.cpp index d6e47af00f..18e127585a 100644 --- a/src/add-ons/kernel/network/protocols/ipv4/ipv4.cpp +++ b/src/add-ons/kernel/network/protocols/ipv4/ipv4.cpp @@ -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) {