gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r36308 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r36308 - gnunet/src/cadet
Date: Thu, 3 Sep 2015 20:04:08 +0200

Author: bartpolot
Date: 2015-09-03 20:04:08 +0200 (Thu, 03 Sep 2015)
New Revision: 36308

Modified:
   gnunet/src/cadet/gnunet-service-cadet_local.c
Log:
- handle case if ports == NULL

Modified: gnunet/src/cadet/gnunet-service-cadet_local.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_local.c       2015-09-03 18:04:07 UTC 
(rev 36307)
+++ gnunet/src/cadet/gnunet-service-cadet_local.c       2015-09-03 18:04:08 UTC 
(rev 36308)
@@ -1064,8 +1064,11 @@
   {
     LOG (GNUNET_ERROR_TYPE_ERROR, "Client %u (%p), handle: %p\n",
          c->id, c, c->handle);
-    LOG (GNUNET_ERROR_TYPE_ERROR, "\t%3u ports registered\n",
-         GNUNET_CONTAINER_multihashmap32_size (c->ports));
+    if (NULL != c->ports)
+      LOG (GNUNET_ERROR_TYPE_ERROR, "\t%3u ports registered\n",
+           GNUNET_CONTAINER_multihashmap32_size (c->ports));
+    else
+      LOG (GNUNET_ERROR_TYPE_ERROR, "\t no ports registered\n");
     LOG (GNUNET_ERROR_TYPE_ERROR, "\t%3u own channles\n",
          GNUNET_CONTAINER_multihashmap32_size (c->own_channels));
     LOG (GNUNET_ERROR_TYPE_ERROR, "\t%3u incoming channles\n",




reply via email to

[Prev in Thread] Current Thread [Next in Thread]