commit caeeec6cacaa5354883494cb64b0a38e5c75da5d
parent e0a04a70bbb2f89a7346e67de026b6c78f22dd7c
Author: tg(x) <*@tg-x.net>
Date: Tue, 28 Feb 2017 15:34:40 +0100
multicast: fix replay_req_remove_cadet()
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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);