Skip to content

Commit

Permalink
tmx: safety check for bad callid header in t_precheck_tran()
Browse files Browse the repository at this point in the history
- reported by GH#331

(cherry picked from commit 7cc1d11)
(cherry picked from commit 209162e)
  • Loading branch information
zxcpoiu authored and miconda committed Dec 17, 2015
1 parent 67009ea commit a5fe14c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/tmx/tmx_pretran.c
Expand Up @@ -221,6 +221,10 @@ int tmx_check_pretran(sip_msg_t *msg)
LM_ERR("failed to get From header\n");
return -1;
}
if (msg->callid==NULL || msg->callid->body.s==NULL) {
LM_ERR("failed to parse callid headers\n");
return -1;
}

vbr = msg->via1->branch;

Expand Down

0 comments on commit a5fe14c

Please sign in to comment.