gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r35975 - gnunet/src/cadet
Date: Wed, 24 Jun 2015 16:13:53 +0200

Author: bartpolot
Date: 2015-06-24 16:13:53 +0200 (Wed, 24 Jun 2015)
New Revision: 35975

Modified:
   gnunet/src/cadet/gnunet-service-cadet_peer.c
Log:
- check connections on peer destroy

Modified: gnunet/src/cadet/gnunet-service-cadet_peer.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_peer.c        2015-06-24 14:01:21 UTC 
(rev 35974)
+++ gnunet/src/cadet/gnunet-service-cadet_peer.c        2015-06-24 14:13:53 UTC 
(rev 35975)
@@ -737,6 +737,11 @@
   }
   if (NULL != peer->tunnel)
     GCT_destroy_empty (peer->tunnel);
+  if (NULL != peer->connections)
+  {
+    GNUNET_assert (0 == GNUNET_CONTAINER_multihashmap_size 
(peer->connections));
+    GNUNET_CONTAINER_multihashmap_destroy (peer->connections);
+  }
   GNUNET_free_non_null (peer->hello);
   GNUNET_free (peer);
   return GNUNET_OK;
@@ -2184,7 +2189,7 @@
                                                        GCC_get_h (c),
                                                        c));
   LOG (GNUNET_ERROR_TYPE_DEBUG,
-       "Peer %s reamins with %u connections.\n",
+       "Peer %s remains with %u connections.\n",
        GCP_2s (peer),
        GNUNET_CONTAINER_multihashmap_size (peer->connections));
 }




reply via email to

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