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:
parent
f0961a247f
commit
603ed1d72f
5 changed files with 61 additions and 16 deletions
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue