fix rps service: don't null out context, just channel
authorJulius Bünger <buenger@mytum.de>
Thu, 26 Jul 2018 14:53:24 +0000 (16:53 +0200)
committerJulius Bünger <buenger@mytum.de>
Thu, 26 Jul 2018 14:53:24 +0000 (16:53 +0200)
src/rps/gnunet-service-rps.c

index a5fb88157a5c7c2982f75192e10016d408564ae8..d6c6d0eccdc8b5d9071735ddd8ce5947de762d3f 100644 (file)
@@ -1725,7 +1725,7 @@ destroy_channel (void *cls)
   struct PeerContext *peer_ctx = channel_ctx->peer_ctx;
   uint32_t *channel_flag;
 
-  channel_ctx = NULL;
+  channel_ctx->destruction_task = NULL;
   GNUNET_CADET_channel_destroy (peer_ctx->send_channel_ctx->channel);
   channel_flag = Peers_get_channel_flag (&peer_ctx->peer_id, Peers_CHANNEL_ROLE_SENDING);
   Peers_set_channel_flag (channel_flag, Peers_CHANNEL_DESTROING);