diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-22 13:46:57 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-22 13:46:57 +0100 |
commit | 0d2ff615ee0b84852e80d96d5373ebead4c3e423 (patch) | |
tree | 5854cbdcec7c8857b9ba1a7a6ded83c80ce24a9e /src/dht/gnunet-service-dht_neighbours.c | |
parent | 4ba0fa6ba9f9be044c8c96ddd4d909e7d84403b5 (diff) |
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.c | 3 |
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 9e1cecfcdb..810e6196a0 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, if (NULL == peer) peer = bucket->head; hello = GDS_HELLO_get (peer->id); - hello_size = GNUNET_HELLO_size (hello); } while ( (NULL == hello) || (GNUNET_BLOCK_EVALUATION_OK_MORE != GNUNET_BLOCK_evaluate (GDS_block_context, @@ -1925,7 +1924,7 @@ handle_find_peer (const struct GNUNET_PeerIdentity *sender, &peer->phash, NULL, 0, hello, - hello_size)) ); + (hello_size = GNUNET_HELLO_size (hello)))) ); GDS_NEIGHBOURS_handle_reply (sender, GNUNET_BLOCK_TYPE_DHT_HELLO, GNUNET_TIME_relative_to_absolute |