Skip to content

Commit fb1ec96

Browse files
czp182alandekok
authored andcommitted
fix: 1. initialise thread mutex before use
(rlm_stats: initialise thread mutex before use 415)
1 parent 0464693 commit fb1ec96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modules/rlm_stats/rlm_stats.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ static int mod_thread_instantiate(module_thread_inst_ctx_t const *mctx)
378378
return -1;
379379
}
380380

381+
pthread_mutex_init(&t->mutex, NULL);
382+
381383
pthread_mutex_lock(&inst->mutable->mutex);
382384
fr_dlist_insert_head(&inst->mutable->list, t);
383385
pthread_mutex_unlock(&inst->mutable->mutex);

0 commit comments

Comments
 (0)