Skip to content

Commit

Permalink
aaa_diameter: Fix missing lock_release() on error case
Browse files Browse the repository at this point in the history
Credits to @ryancaicse for the report in #2714

(cherry picked from commit ffe3b6f)
  • Loading branch information
liviuchircu committed Dec 20, 2021
1 parent f32089b commit 7d2a8de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/aaa_diameter/app_opensips/app_opensips.c
Expand Up @@ -169,6 +169,7 @@ static FILE *get_acc_log(void)
fd_log_debug("[ACC] opened %s for writing (append mode)", fpath);
if (!acc_log[acc_log_idx]) {
fd_log_error("[ACC] failed to open %s (%d: %s)\n", fpath, errno, strerror(errno));
pthread_mutex_unlock(&acc_rotate_lock);
return NULL;
}

Expand Down

0 comments on commit 7d2a8de

Please sign in to comment.