Fixed multiaddress_get_peer_id to return allocated memory

Returing in place causes problems with continuations i.e. ending
slashes. Therefore it is better to return allocated memory.
This commit is contained in:
John Jones 2017-04-17 11:56:36 -05:00
parent f0961a247f
commit 603ed1d72f
5 changed files with 61 additions and 16 deletions

View file

@ -9,6 +9,7 @@ const char* names[] = {
"test_int_to_hex",
"test_multiaddr_utils",
"test_multiaddr_peer_id",
"test_multiaddr_get_peer_id",
"test_multiaddr_bytes"
};
@ -19,6 +20,7 @@ int (*funcs[])(void) = {
test_int_to_hex,
test_multiaddr_utils,
test_multiaddr_peer_id,
test_multiaddr_get_peer_id,
test_multiaddr_bytes
};