summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2021-05-15 18:29:27 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2021-05-15 18:29:27 +0200
commitdc7de219b5a16dc63e7492981d5d7fcd79d91fc8 (patch)
tree7fc0e8e145d4019b1f13373391ffb8955bbcd541
parenta32caa414945a64ae75561d5edb87498d86f265a (diff)
-coverity: use after free
-rw-r--r--src/cadet/gnunet-service-cadet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet.c b/src/cadet/gnunet-service-cadet.c
index c8d69e43d..73e463e9b 100644
--- a/src/cadet/gnunet-service-cadet.c
+++ b/src/cadet/gnunet-service-cadet.c
@@ -1137,13 +1137,13 @@ channel_destroy_iterator (void *cls,
GCCH_2s (ch),
GSC_2s (c));
ccn.channel_of_client = htonl (key);
- GCCH_channel_local_destroy (ch,
- c,
- ccn);
GNUNET_assert (GNUNET_YES ==
GNUNET_CONTAINER_multihashmap32_remove (c->channels,
key,
ch));
+ GCCH_channel_local_destroy (ch,
+ c,
+ ccn);
return GNUNET_OK;
}