aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rps/gnunet-service-rps.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index cbcf00f8f..2e2fa96a7 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -2814,6 +2814,25 @@ new_sub (const struct GNUNET_HashCode *hash,
2814 "rps", 2814 "rps",
2815 "FILENAME_VALID_PEERS"); 2815 "FILENAME_VALID_PEERS");
2816 } 2816 }
2817 if (0 != strncmp ("DISABLE", sub->filename_valid_peers, 7))
2818 {
2819 char *tmp_filename_valid_peers;
2820 char str_hash[105];
2821 uint32_t len_filename_valid_peers;
2822
2823 (void) GNUNET_snprintf (str_hash, 105, GNUNET_h2s_full (hash));
2824 tmp_filename_valid_peers = GNUNET_strdup (sub->filename_valid_peers);
2825 GNUNET_free (sub->filename_valid_peers);
2826 len_filename_valid_peers = strlen (tmp_filename_valid_peers) + 105; /* Len of full hash + 1 */
2827 sub->filename_valid_peers = GNUNET_malloc (len_filename_valid_peers);
2828 strncat (sub->filename_valid_peers,
2829 tmp_filename_valid_peers,
2830 len_filename_valid_peers);
2831 strncat (sub->filename_valid_peers,
2832 str_hash,
2833 len_filename_valid_peers);
2834 GNUNET_free (tmp_filename_valid_peers);
2835 }
2817 sub->peer_map = GNUNET_CONTAINER_multipeermap_create (4, GNUNET_NO); 2836 sub->peer_map = GNUNET_CONTAINER_multipeermap_create (4, GNUNET_NO);
2818 2837
2819 /* Set up the sampler */ 2838 /* Set up the sampler */