[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r36202 - gnunet/src/rps
From: |
gnunet |
Subject: |
[GNUnet-SVN] r36202 - gnunet/src/rps |
Date: |
Tue, 4 Aug 2015 14:34:37 +0200 |
Author: ch3
Date: 2015-08-04 14:34:37 +0200 (Tue, 04 Aug 2015)
New Revision: 36202
Modified:
gnunet/src/rps/gnunet-service-rps.c
Log:
-fix (create peermap), logging
Modified: gnunet/src/rps/gnunet-service-rps.c
===================================================================
--- gnunet/src/rps/gnunet-service-rps.c 2015-08-04 11:52:05 UTC (rev 36201)
+++ gnunet/src/rps/gnunet-service-rps.c 2015-08-04 12:34:37 UTC (rev 36202)
@@ -1133,7 +1133,7 @@
if (NULL == peer_map)
{
LOG (GNUNET_ERROR_TYPE_WARNING,
- "Trying to add peers to an empty peermap.\n");
+ "Trying to add peers to non-existing peermap.\n");
return;
}
@@ -1567,8 +1567,6 @@
{ /* Try to maximise representation */
if (NULL == att_peer_set)
att_peer_set = GNUNET_CONTAINER_multipeermap_create (1, GNUNET_NO);
- if (NULL == mal_peer_set)
- mal_peer_set = GNUNET_CONTAINER_multipeermap_create (1, GNUNET_NO);
if (GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (att_peer_set,
peer))
{
@@ -1995,6 +1993,8 @@
/* Do actual logic */
peers = (struct GNUNET_PeerIdentity *) &msg[1];
mal_type = ntohl (in_msg->type);
+ if (NULL == mal_peer_set)
+ mal_peer_set = GNUNET_CONTAINER_multipeermap_create (1, GNUNET_NO);
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Now acting malicious type %" PRIu32 ", got %" PRIu32 " peers.\n",
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r36202 - gnunet/src/rps,
gnunet <=