Skip to content

Commit

Permalink
msrp_ua: fix crash for AUTH transaction timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
rvlad-patrascu committed Jan 16, 2023
1 parent ad91944 commit 39c5e31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/msrp_ua/msrp_ua.c
Original file line number Diff line number Diff line change
Expand Up @@ -2194,6 +2194,9 @@ static int handle_msrp_reply(struct msrp_msg *rpl, struct msrp_cell *tran,
hentry = hash_entry(msrpua_sessions, sess->session_id);
hash_lock(msrpua_sessions, hentry);

if (!rpl)
goto err_failed;

if (rpl->fl.u.reply.status_no == 401) {
if (msrpua_send_auth(sess, trans_param, rpl) < 0) {
LM_ERR("Failed to send AUTH request\n");
Expand Down

0 comments on commit 39c5e31

Please sign in to comment.