Skip to content

Commit

Permalink
b2b_logic: fix deadlock on error case
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Barenthin committed Nov 17, 2023
1 parent e8aaca7 commit bed93f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/b2b_logic/logic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ int _b2b_pass_request(struct sip_msg *msg, b2bl_tuple_t *tuple,
return 0;
error:
if (do_unlock)
B2BL_LOCK_GET(cur_route_ctx.hash_index);
B2BL_LOCK_RELEASE(cur_route_ctx.hash_index);
return -1;
}

Expand Down

0 comments on commit bed93f8

Please sign in to comment.