talloc_set_log_stderr();
- filename_tree = rbtree_create(NULL, filename_cmp, NULL, 0);
+ filename_tree = rbtree_talloc_create(NULL, filename_cmp, rc_file_pair_t, NULL, 0);
if (!filename_tree) {
oom:
ERROR("Out of memory");
usage(64);
}
- link_tree = rbtree_create(conf, (rbcmp) rs_rtx_cmp, _unmark_link, 0);
+ link_tree = rbtree_talloc_create(conf, (rbcmp) rs_rtx_cmp, rs_request_t, _unmark_link, 0);
if (!link_tree) {
ERROR("Failed creating RTX tree");
goto finish;
/*
* Setup the request tree
*/
- request_tree = rbtree_create(conf, (rbcmp) rs_packet_cmp, _unmark_request, 0);
+ request_tree = rbtree_talloc_create(conf, (rbcmp) rs_packet_cmp, rs_request_t, _unmark_request, 0);
if (!request_tree) {
ERROR("Failed creating request tree");
goto finish;
/*
* The cache.
*/
- driver->cache = rbtree_talloc_create(NULL, cache_entry_cmp, rlm_cache_entry_t, NULL, 0);
+ driver->cache = rbtree_talloc_create(NULL, cache_entry_cmp, rlm_cache_rbtree_entry_t, NULL, 0);
if (!driver->cache) {
ERROR("Failed to create cache");
return -1;
MEM(e = (rlm_csv_entry_t *)talloc_zero_array(inst->tree, uint8_t,
sizeof(*e) + inst->used_fields + sizeof(e->data[0])));
+ talloc_set_type(e, rlm_csv_entry_t);
for (p = buffer, i = 0; p != NULL; p = q, i++) {
if (!buf2entry(inst, p, &q)) {
* Lookup sessions in the tree. We don't free them in
* the tree, as that's taken care of elsewhere...
*/
- inst->session_tree = rbtree_create(NULL, securid_session_cmp, NULL, 0);
+ inst->session_tree = rbtree_talloc_create(NULL, securid_session_cmp, SECURID_SESSION NULL, 0);
if (!inst->session_tree) {
ERROR("Cannot initialize session tree");
return -1;