Module: kamailio Branch: master Commit: fe0a2b2fafcaa28a1f5f964ade8d26686e8f660d URL: https://github.com/kamailio/kamailio/commit/fe0a2b2fafcaa28a1f5f964ade8d2668...
Author: Federico Cabiddu federico.cabiddu@gmail.com Committer: GitHub noreply@github.com Date: 2019-01-10T09:46:25+01:00
Merge pull request #1802 from kamailio/vseva_1775
tsilo: add check for empty aor
---
Modified: src/modules/tsilo/ts_store.c
---
Diff: https://github.com/kamailio/kamailio/commit/fe0a2b2fafcaa28a1f5f964ade8d2668... Patch: https://github.com/kamailio/kamailio/commit/fe0a2b2fafcaa28a1f5f964ade8d2668...
---
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);