From ed64d4e0f59c086f97c9c53aef8a5fa1aa14c225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 17 Aug 2010 15:34:24 +0000 Subject: [PATCH] * Fixed CID 1511: protocol could be NULL. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38193 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/network/protocols/ipv4/ipv4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {