Module: kamailio
Branch: master
Commit: f6270fcc1911cc76a5182461b18e5ba11cddd20c
URL:
https://github.com/kamailio/kamailio/commit/f6270fcc1911cc76a5182461b18e5ba…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-09-23T11:29:21+02:00
Merge pull request #334 from zxcpoiu/master
tmx: safety check for bad callid header in t_precheck_tran()
---
Modified: modules/tmx/tmx_pretran.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f6270fcc1911cc76a5182461b18e5ba…
Patch:
https://github.com/kamailio/kamailio/commit/f6270fcc1911cc76a5182461b18e5ba…
---
diff --git a/modules/tmx/tmx_pretran.c b/modules/tmx/tmx_pretran.c
index 8ba74df..00f571b 100644
--- a/modules/tmx/tmx_pretran.c
+++ b/modules/tmx/tmx_pretran.c
@@ -227,6 +227,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;