From caeeec6cacaa5354883494cb64b0a38e5c75da5d Mon Sep 17 00:00:00 2001 From: "tg(x)" <*@tg-x.net> Date: Tue, 28 Feb 2017 15:34:40 +0100 Subject: [PATCH] multicast: fix replay_req_remove_cadet() --- src/multicast/gnunet-service-multicast.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/multicast/gnunet-service-multicast.c b/src/multicast/gnunet-service-multicast.c index b068f1308..3f356af83 100644 --- a/src/multicast/gnunet-service-multicast.c +++ b/src/multicast/gnunet-service-multicast.c @@ -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); -- 2.25.1