diff options
author | Julius Bünger <buenger@mytum.de> | 2015-08-03 14:30:15 +0000 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2015-08-03 14:30:15 +0000 |
commit | 937b425c919c45cf15c633da83777341a300ecf2 (patch) | |
tree | 049022f0063fa358194f6a6430fb7d64b42c482a /src/rps | |
parent | 25fcc61c80ead51e496f8e350e051893e052198c (diff) | |
download | gnunet-937b425c919c45cf15c633da83777341a300ecf2.tar.gz gnunet-937b425c919c45cf15c633da83777341a300ecf2.zip |
-fix malicious peer
Diffstat (limited to 'src/rps')
-rw-r--r-- | src/rps/gnunet-service-rps.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index 97f687b7b..befe6926d 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c | |||
@@ -1567,6 +1567,8 @@ handle_peer_push (void *cls, | |||
1567 | { /* Try to maximise representation */ | 1567 | { /* Try to maximise representation */ |
1568 | if (NULL == att_peer_set) | 1568 | if (NULL == att_peer_set) |
1569 | att_peer_set = GNUNET_CONTAINER_multipeermap_create (1, GNUNET_NO); | 1569 | att_peer_set = GNUNET_CONTAINER_multipeermap_create (1, GNUNET_NO); |
1570 | if (NULL == mal_peer_set) | ||
1571 | mal_peer_set = GNUNET_CONTAINER_multipeermap_create (1, GNUNET_NO); | ||
1570 | if (GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (att_peer_set, | 1572 | if (GNUNET_NO == GNUNET_CONTAINER_multipeermap_contains (att_peer_set, |
1571 | peer)) | 1573 | peer)) |
1572 | { | 1574 | { |