gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r37929 - gnunet/src/rps


From: gnunet
Subject: [GNUnet-SVN] r37929 - gnunet/src/rps
Date: Thu, 15 Sep 2016 01:09:14 +0200

Author: ch3
Date: 2016-09-15 01:09:14 +0200 (Thu, 15 Sep 2016)
New Revision: 37929

Modified:
   gnunet/src/rps/gnunet-service-rps_custommap.c
Log:
-rps _custommap: more assertions (keep coverity happy?)

Modified: gnunet/src/rps/gnunet-service-rps_custommap.c
===================================================================
--- gnunet/src/rps/gnunet-service-rps_custommap.c       2016-09-14 22:46:54 UTC 
(rev 37928)
+++ gnunet/src/rps/gnunet-service-rps_custommap.c       2016-09-14 23:09:14 UTC 
(rev 37929)
@@ -209,9 +209,11 @@
       GNUNET_CONTAINER_multihashmap32_get (c_peer_map->hash_map,
                                            CustomPeerMap_size (c_peer_map));
     GNUNET_assert (NULL != last_p);
+    last_index = GNUNET_CONTAINER_multipeermap_get (c_peer_map->peer_map, 
last_p);
+    GNUNET_assert (NULL != last_index);
+    GNUNET_assert (CustomPeerMap_size (c_peer_map) == *last_index);
     GNUNET_CONTAINER_multihashmap32_put (c_peer_map->hash_map, *index, last_p,
         GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST);
-    last_index = GNUNET_CONTAINER_multipeermap_get (c_peer_map->peer_map, 
last_p);
     GNUNET_CONTAINER_multihashmap32_remove_all (c_peer_map->hash_map, 
*last_index);
     *last_index = *index;
   }




reply via email to

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