aboutsummaryrefslogtreecommitdiff
path: root/src/cadet
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-09-03 18:04:08 +0000
committerBart Polot <bart@net.in.tum.de>2015-09-03 18:04:08 +0000
commit8093ca0ae473ab0f834946078c305f51ef915fef (patch)
tree84e1ecddf62878effe8ac7301c047abb1c44b944 /src/cadet
parent7008517cd465e41b9cd614fabb5e7fb4879fb16f (diff)
downloadgnunet-8093ca0ae473ab0f834946078c305f51ef915fef.tar.gz
gnunet-8093ca0ae473ab0f834946078c305f51ef915fef.zip
- handle case if ports == NULL
Diffstat (limited to 'src/cadet')
-rw-r--r--src/cadet/gnunet-service-cadet_local.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cadet/gnunet-service-cadet_local.c b/src/cadet/gnunet-service-cadet_local.c
index 7d963f4ca..20cf1592b 100644
--- a/src/cadet/gnunet-service-cadet_local.c
+++ b/src/cadet/gnunet-service-cadet_local.c
@@ -1064,8 +1064,11 @@ handle_info_dump (void *cls, struct GNUNET_SERVER_Client *client,
1064 { 1064 {
1065 LOG (GNUNET_ERROR_TYPE_ERROR, "Client %u (%p), handle: %p\n", 1065 LOG (GNUNET_ERROR_TYPE_ERROR, "Client %u (%p), handle: %p\n",
1066 c->id, c, c->handle); 1066 c->id, c, c->handle);
1067 LOG (GNUNET_ERROR_TYPE_ERROR, "\t%3u ports registered\n", 1067 if (NULL != c->ports)
1068 GNUNET_CONTAINER_multihashmap32_size (c->ports)); 1068 LOG (GNUNET_ERROR_TYPE_ERROR, "\t%3u ports registered\n",
1069 GNUNET_CONTAINER_multihashmap32_size (c->ports));
1070 else
1071 LOG (GNUNET_ERROR_TYPE_ERROR, "\t no ports registered\n");
1069 LOG (GNUNET_ERROR_TYPE_ERROR, "\t%3u own channles\n", 1072 LOG (GNUNET_ERROR_TYPE_ERROR, "\t%3u own channles\n",
1070 GNUNET_CONTAINER_multihashmap32_size (c->own_channels)); 1073 GNUNET_CONTAINER_multihashmap32_size (c->own_channels));
1071 LOG (GNUNET_ERROR_TYPE_ERROR, "\t%3u incoming channles\n", 1074 LOG (GNUNET_ERROR_TYPE_ERROR, "\t%3u incoming channles\n",