summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruno Cabral <bcabral@uw.edu>2014-08-31 15:14:56 +0000
committerBruno Cabral <bcabral@uw.edu>2014-08-31 15:14:56 +0000
commitd7b72789762fb1dcc93e6ba7a77ab18278cb1a3f (patch)
treed7b5a7941b8766819a9d219769015e34fec05f7d /src
parent937abe2f277d163e19b626fc37955d91e5126140 (diff)
Don't destroy channel if it was already destroyed.
Diffstat (limited to 'src')
-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);
}