multicast: fix replay_req_remove_cadet()
authortg(x) <*@tg-x.net>
Tue, 28 Feb 2017 14:34:40 +0000 (15:34 +0100)
committertg(x) <*@tg-x.net>
Tue, 28 Feb 2017 14:34:40 +0000 (15:34 +0100)
src/multicast/gnunet-service-multicast.c

index b068f13083e72b557ca586532d857b2aeb125a1a..3f356af834c6232be9649ac9a2be0bd8869298ed 100644 (file)
@@ -464,6 +464,9 @@ replay_key_hash (uint64_t fragment_id, uint64_t message_id,
 static int
 replay_req_remove_cadet (struct Channel *chn)
 {
+  if (NULL == chn || NULL == chn->group)
+    return GNUNET_SYSERR;
+
   struct GNUNET_CONTAINER_MultiHashMap *
     grp_replay_req = GNUNET_CONTAINER_multihashmap_get (replay_req_cadet,
                                                         &chn->group->pub_key_hash);