Skip to content

Commit

Permalink
b2b_sca: Fix double lock release on error case
Browse files Browse the repository at this point in the history
Many thanks to Ryan Caicse (@ryancaicse) for reporting this bug!

(cherry picked from commit 4bdbaf2)
  • Loading branch information
liviuchircu committed Nov 18, 2022
1 parent b73c2d1 commit f7e8576
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/b2b_sca/sca_logic.c
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,6 @@ int sca_bridge_request(struct sip_msg* msg, str* shared_line)
lock_get(&b2b_sca_htable[hash_index].lock);
record = b2b_sca_search_record_safe(hash_index, shared_line);
if (record == NULL) {
lock_release(&b2b_sca_htable[hash_index].lock);
LM_ERR("record not found for shared line [%.*s] on hash index [%d]\n",
shared_line->len, shared_line->s, hash_index);
// FIXME:
Expand Down

0 comments on commit f7e8576

Please sign in to comment.