aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-03-17 11:02:41 +0000
committerBart Polot <bart@net.in.tum.de>2014-03-17 11:02:41 +0000
commit77caeaf547fdd2776de478946e0f75322b1e2adb (patch)
treed42032b92ca6057fc8aea9fe0c701c523745af64 /src
parent1bf6980ae91b29a2c7444f05bf4a51e649aecfc5 (diff)
downloadgnunet-77caeaf547fdd2776de478946e0f75322b1e2adb.tar.gz
gnunet-77caeaf547fdd2776de478946e0f75322b1e2adb.zip
- NPE
Diffstat (limited to 'src')
-rw-r--r--src/mesh/gnunet-mesh-profiler.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesh/gnunet-mesh-profiler.c b/src/mesh/gnunet-mesh-profiler.c
index 928c1dfed..8fd2526b9 100644
--- a/src/mesh/gnunet-mesh-profiler.c
+++ b/src/mesh/gnunet-mesh-profiler.c
@@ -253,7 +253,8 @@ disconnect_mesh_peers (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
253 if (peers[i].up != GNUNET_YES) 253 if (peers[i].up != GNUNET_YES)
254 continue; 254 continue;
255 255
256 GNUNET_MESH_channel_destroy (peers[i].ch); 256 if (NULL != peers[i].ch)
257 GNUNET_MESH_channel_destroy (peers[i].ch);
257 if (NULL != peers[i].incoming_ch) 258 if (NULL != peers[i].incoming_ch)
258 GNUNET_MESH_channel_destroy (peers[i].incoming_ch); 259 GNUNET_MESH_channel_destroy (peers[i].incoming_ch);
259 } 260 }