aboutsummaryrefslogtreecommitdiff
path: root/src/topology/gnunet-daemon-topology.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-06-16 13:08:48 +0000
committerChristian Grothoff <christian@grothoff.org>2011-06-16 13:08:48 +0000
commit134924d50bf7b1efa08ff2622c4d09576a9f9a39 (patch)
treeb87e5a8f37971639527253082dc18db7cbc55616 /src/topology/gnunet-daemon-topology.c
parent93cb17b80c96217bfbbb912c26d7ac7f4edb9e3c (diff)
downloadgnunet-134924d50bf7b1efa08ff2622c4d09576a9f9a39.tar.gz
gnunet-134924d50bf7b1efa08ff2622c4d09576a9f9a39.zip
do not allow NULL for fn
Diffstat (limited to 'src/topology/gnunet-daemon-topology.c')
-rw-r--r--src/topology/gnunet-daemon-topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c
index ebe19a58d..f7118a058 100644
--- a/src/topology/gnunet-daemon-topology.c
+++ b/src/topology/gnunet-daemon-topology.c
@@ -511,7 +511,7 @@ setup_filter (struct Peer *peer)
511 "useless" once a HELLO has been passed on to ~100 511 "useless" once a HELLO has been passed on to ~100
512 other peers, which is likely more than enough in 512 other peers, which is likely more than enough in
513 any case; hence 64, 5 as bloomfilter parameters. */ 513 any case; hence 64, 5 as bloomfilter parameters. */
514 peer->filter = GNUNET_CONTAINER_bloomfilter_load (NULL, 64, 5); 514 peer->filter = GNUNET_CONTAINER_bloomfilter_init (NULL, 64, 5);
515 peer->filter_expiration = GNUNET_TIME_relative_to_absolute (HELLO_ADVERTISEMENT_MIN_REPEAT_FREQUENCY); 515 peer->filter_expiration = GNUNET_TIME_relative_to_absolute (HELLO_ADVERTISEMENT_MIN_REPEAT_FREQUENCY);
516 /* never send a peer its own HELLO */ 516 /* never send a peer its own HELLO */
517 GNUNET_CONTAINER_bloomfilter_add (peer->filter, &peer->pid.hashPubKey); 517 GNUNET_CONTAINER_bloomfilter_add (peer->filter, &peer->pid.hashPubKey);