From: Bart Polot Date: Wed, 12 Oct 2011 14:22:45 +0000 (+0000) Subject: Fixed coverity 10178 X-Git-Tag: initial-import-from-subversion-38251~16583 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d9a688a4a47cfcce78eadc0b33670801f3de9644;p=oweals%2Fgnunet.git Fixed coverity 10178 --- diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 79cad3df8..fdae1c2b1 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -2124,6 +2124,8 @@ handle_mesh_data_multicast (void *cls, const struct GNUNET_PeerIdentity *peer, for (*copies = 0; NULL != n; n = n->next) (*copies)++; n = t->tree->me->children_head; + if (NULL == n) + return; data = GNUNET_malloc (size); memcpy (data, &msg[1], size); while (NULL != n)