FR_DBUFF_TALLOC_THREAD_LOCAL(&dbuff, 1024, 4096);
- local = talloc_new(NULL);
+ MEM(local = talloc_new(NULL));
fr_pair_list_init(&pairs);
if (fr_pair_list_copy(local, &pairs, &sync->config->sync_pairs) < 0) {
error:
/*
* Register event to store cookies at a regular interval
*/
- fr_event_timer_in(sync, conn->conn->el, &sync->cookie_ev, inst->cookie_interval, ldap_sync_cookie_event, sync);
+ if (fr_event_timer_in(sync, conn->conn->el, &sync->cookie_ev,
+ inst->cookie_interval, ldap_sync_cookie_event, sync) < 0) {
+ PERROR("Inserting LDAP cookie timer failed");
+ goto error;
+ }
return 0;
}