Make sure don't crash if ipfs_routing_new_kademlia fails.

This commit is contained in:
Jose Marcial Vieira Bisneto 2017-07-07 00:11:52 -03:00
parent 13b8b8bf27
commit 297283168c

View file

@ -64,7 +64,7 @@ int test_routing_supernode_get_remote_value() {
size_t hash_size = 100; size_t hash_size = 100;
unsigned char hash[hash_size]; unsigned char hash[hash_size];
unsigned char* hash_ptr = &hash[0]; unsigned char* hash_ptr = &hash[0];
struct Libp2pVector* multiaddresses; struct Libp2pVector* multiaddresses = NULL;
struct MultiAddress* addr = NULL; struct MultiAddress* addr = NULL;
char* ip = NULL; char* ip = NULL;
struct SessionContext context; struct SessionContext context;