diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-06-16 13:08:48 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-06-16 13:08:48 +0000 |
commit | 134924d50bf7b1efa08ff2622c4d09576a9f9a39 (patch) | |
tree | b87e5a8f37971639527253082dc18db7cbc55616 /src/topology | |
parent | 93cb17b80c96217bfbbb912c26d7ac7f4edb9e3c (diff) | |
download | gnunet-134924d50bf7b1efa08ff2622c4d09576a9f9a39.tar.gz gnunet-134924d50bf7b1efa08ff2622c4d09576a9f9a39.zip |
do not allow NULL for fn
Diffstat (limited to 'src/topology')
-rw-r--r-- | src/topology/gnunet-daemon-topology.c | 2 |
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); |