Module: kamailio
Branch: 5.2
Commit: 23a5c07e924a2feb5f09b727f4ad0faf6c5af349
URL:
https://github.com/kamailio/kamailio/commit/23a5c07e924a2feb5f09b727f4ad0fa…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-14T12:28:25+01:00
tsilo: add check for empty aor
Fix: #1775
(cherry picked from commit 5a5d742eb459249995114eb6a3642f99c6770496)
---
Modified: src/modules/tsilo/ts_store.c
---
Diff:
https://github.com/kamailio/kamailio/commit/23a5c07e924a2feb5f09b727f4ad0fa…
Patch:
https://github.com/kamailio/kamailio/commit/23a5c07e924a2feb5f09b727f4ad0fa…
---
diff --git a/src/modules/tsilo/ts_store.c b/src/modules/tsilo/ts_store.c
index a33924fa50..6d1c5a5f72 100644
--- a/src/modules/tsilo/ts_store.c
+++ b/src/modules/tsilo/ts_store.c
@@ -71,6 +71,11 @@ int ts_store(struct sip_msg* msg, str *puri) {
else
aor = ruri.user;
+ if(aor.s==NULL) {
+ LM_ERR("malformed aor from uri[%.*s]\n", suri.len, suri.s);
+ return -1;
+ }
+
t = _tmb.t_gett();
if (!t || t==T_UNDEFINED) {
LM_ERR("no transaction defined for %.*s\n", aor.len, aor.s);