summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fs/gnunet-service-fs_cadet_client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs/gnunet-service-fs_cadet_client.c b/src/fs/gnunet-service-fs_cadet_client.c
index aa2c0c426..cfef128fb 100644
--- a/src/fs/gnunet-service-fs_cadet_client.c
+++ b/src/fs/gnunet-service-fs_cadet_client.c
@@ -261,7 +261,8 @@ cadet_timeout (void *cls,
mh->timeout_task = GNUNET_SCHEDULER_NO_TASK;
tun = mh->channel;
mh->channel = NULL;
- GNUNET_CADET_channel_destroy (tun);
+ if(NULL != tun)
+ GNUNET_CADET_channel_destroy (tun);
}