aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_neighbours.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-09 17:48:27 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-09 21:18:47 +0100
commitd829597ee90dccffffd46a082372af6b35042130 (patch)
tree3287e54a2401ccf7050f6588afb01043e7ea8be9 /src/dht/gnunet-service-dht_neighbours.c
parent4bf29b6e9f9b0223f9497f7664e96e3f333df861 (diff)
downloadgnunet-d829597ee90dccffffd46a082372af6b35042130.tar.gz
gnunet-d829597ee90dccffffd46a082372af6b35042130.zip
cosmetics
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.c')
-rw-r--r--src/dht/gnunet-service-dht_neighbours.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c
index 574ed9ad0..0d3594d1a 100644
--- a/src/dht/gnunet-service-dht_neighbours.c
+++ b/src/dht/gnunet-service-dht_neighbours.c
@@ -1830,10 +1830,16 @@ handle_find_peer (const struct GNUNET_PeerIdentity *sender,
1830 /* first, check about our own HELLO */ 1830 /* first, check about our own HELLO */
1831 if (NULL != GDS_my_hello) 1831 if (NULL != GDS_my_hello)
1832 { 1832 {
1833 GNUNET_BLOCK_mingle_hash (&my_identity_hash, bf_mutator, &mhash); 1833 GNUNET_BLOCK_mingle_hash (&my_identity_hash,
1834 bf_mutator,
1835 &mhash);
1834 if ((NULL == bf) || 1836 if ((NULL == bf) ||
1835 (GNUNET_YES != GNUNET_CONTAINER_bloomfilter_test (bf, &mhash))) 1837 (GNUNET_YES != GNUNET_CONTAINER_bloomfilter_test (bf, &mhash)))
1836 { 1838 {
1839 size_t hello_size;
1840
1841 hello_size = GNUNET_HELLO_size ((const struct GNUNET_HELLO_Message *) GDS_my_hello);
1842 GNUNET_break (hello_size >= sizeof (struct GNUNET_MessageHeader));
1837 GDS_NEIGHBOURS_handle_reply (sender, 1843 GDS_NEIGHBOURS_handle_reply (sender,
1838 GNUNET_BLOCK_TYPE_DHT_HELLO, 1844 GNUNET_BLOCK_TYPE_DHT_HELLO,
1839 GNUNET_TIME_relative_to_absolute 1845 GNUNET_TIME_relative_to_absolute
@@ -1844,9 +1850,7 @@ handle_find_peer (const struct GNUNET_PeerIdentity *sender,
1844 0, 1850 0,
1845 NULL, 1851 NULL,
1846 GDS_my_hello, 1852 GDS_my_hello,
1847 GNUNET_HELLO_size ((const struct 1853 hello_size);
1848 GNUNET_HELLO_Message *)
1849 GDS_my_hello));
1850 } 1854 }
1851 else 1855 else
1852 { 1856 {