FS-9775: Added salloc calls for other entities

The use of salloc in the main ks_dht_t for the inner nodeid suggests salloc calls
should be renamed prealloc to avoid confusion where not used on stack variables
This commit is contained in:
Shane Bryldt authored and Mike Jerris committed 2017-01-25 14:59:33 -06:00
1 parent 63d0d8dc4a
commit b331b72ebe
5 files changed
+35 -1

No files matched your search

+4
View File
@@ -61,6 +61,10 @@ KS_DECLARE(ks_status_t) ks_dht2_init(ks_dht2_t *dht, const uint8_t *nodeid)
ks_assert(dht);
ks_assert(dht->pool);
if (ks_dht2_nodeid_salloc(&dht->nodeid, dht->pool) != KS_STATUS_SUCCESS) {
return KS_STATUS_FAIL;
}
if (ks_dht2_nodeid_init(&dht->nodeid, nodeid) != KS_STATUS_SUCCESS) {
return KS_STATUS_FAIL;
}