FS-9775: Added salloc call to dht for stack allocation, passing on the pool

This will be replicated to other allocations
This commit is contained in:
Shane Bryldt authored and Mike Jerris committed 2017-01-25 14:59:33 -06:00
1 parent d0791961c4
commit 63d0d8dc4a
3 files changed
+16 -1

No files matched your search

-1
View File
@@ -36,7 +36,6 @@ KS_DECLARE(ks_status_t) ks_dht2_nodeid_free(ks_dht2_nodeid_t *nodeid)
KS_DECLARE(ks_status_t) ks_dht2_nodeid_init(ks_dht2_nodeid_t *nodeid, const uint8_t *id)
{
ks_assert(nodeid);
ks_assert(id);
if (!id) {
randombytes_buf(nodeid->id, KS_DHT_NODEID_LENGTH);