Module: kamailio
Branch: master
Commit: 5a5d742eb459249995114eb6a3642f99c6770496
URL:
https://github.com/kamailio/kamailio/commit/5a5d742eb459249995114eb6a3642f9…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2019-01-09T17:44:09+01:00
tsilo: add check for empty aor
Fix: #1775
---
Modified: src/modules/tsilo/ts_store.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5a5d742eb459249995114eb6a3642f9…
Patch:
https://github.com/kamailio/kamailio/commit/5a5d742eb459249995114eb6a3642f9…
---
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);