From 5a5d742eb459249995114eb6a3642f99c6770496 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Wed, 9 Jan 2019 17:44:09 +0100 Subject: [PATCH] tsilo: add check for empty aor Fix: #1775 --- src/modules/tsilo/ts_store.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/tsilo/ts_store.c b/src/modules/tsilo/ts_store.c index a33924fa505..6d1c5a5f724 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);