mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 13:28:31 +00:00
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:
1 parent
d0791961c4
commit
63d0d8dc4a
3 files changed
+16
-1
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user