aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_neighbours.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-22 13:46:57 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-22 13:46:57 +0100
commit0d2ff615ee0b84852e80d96d5373ebead4c3e423 (patch)
tree5854cbdcec7c8857b9ba1a7a6ded83c80ce24a9e /src/dht/gnunet-service-dht_neighbours.c
parent4ba0fa6ba9f9be044c8c96ddd4d909e7d84403b5 (diff)
downloadgnunet-0d2ff615ee0b84852e80d96d5373ebead4c3e423.tar.gz
gnunet-0d2ff615ee0b84852e80d96d5373ebead4c3e423.zip
fix test_dht_montior abortion, fix crash on NULL HELLO
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.c')
-rw-r--r--src/dht/gnunet-service-dht_neighbours.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c
index 9e1cecfcd..810e6196a 100644
--- a/src/dht/gnunet-service-dht_neighbours.c
+++ b/src/dht/gnunet-service-dht_neighbours.c
@@ -1915,7 +1915,6 @@ handle_find_peer (const struct GNUNET_PeerIdentity *sender,
1915 if (NULL == peer) 1915 if (NULL == peer)
1916 peer = bucket->head; 1916 peer = bucket->head;
1917 hello = GDS_HELLO_get (peer->id); 1917 hello = GDS_HELLO_get (peer->id);
1918 hello_size = GNUNET_HELLO_size (hello);
1919 } while ( (NULL == hello) || 1918 } while ( (NULL == hello) ||
1920 (GNUNET_BLOCK_EVALUATION_OK_MORE != 1919 (GNUNET_BLOCK_EVALUATION_OK_MORE !=
1921 GNUNET_BLOCK_evaluate (GDS_block_context, 1920 GNUNET_BLOCK_evaluate (GDS_block_context,
@@ -1925,7 +1924,7 @@ handle_find_peer (const struct GNUNET_PeerIdentity *sender,
1925 &peer->phash, 1924 &peer->phash,
1926 NULL, 0, 1925 NULL, 0,
1927 hello, 1926 hello,
1928 hello_size)) ); 1927 (hello_size = GNUNET_HELLO_size (hello)))) );
1929 GDS_NEIGHBOURS_handle_reply (sender, 1928 GDS_NEIGHBOURS_handle_reply (sender,
1930 GNUNET_BLOCK_TYPE_DHT_HELLO, 1929 GNUNET_BLOCK_TYPE_DHT_HELLO,
1931 GNUNET_TIME_relative_to_absolute 1930 GNUNET_TIME_relative_to_absolute