diff --git a/modules/tsilo/ts_hash.c b/modules/tsilo/ts_hash.c index 6225db65dd7..cf529eeb707 100644 --- a/modules/tsilo/ts_hash.c +++ b/modules/tsilo/ts_hash.c @@ -297,7 +297,7 @@ void remove_ts_urecord(ts_urecord_t* _r) int insert_ts_transaction(struct cell* t, struct sip_msg* msg, struct ts_urecord* _r) { ts_transaction_t *ptr, *prev; - ts_transaction_t* ts; + ts_transaction_t* ts; unsigned int tindex; unsigned int tlabel; diff --git a/modules/tsilo/ts_store.c b/modules/tsilo/ts_store.c index 76ab9f6df2e..48d1441c33b 100644 --- a/modules/tsilo/ts_store.c +++ b/modules/tsilo/ts_store.c @@ -46,6 +46,11 @@ int ts_store(struct sip_msg* msg) { t = _tmb.t_gett(); ruri = msg->first_line.u.request.uri; + if (!t || t==T_UNDEFINED) { + LM_ERR("no transaction defined for %.*s\n", ruri.len, ruri.s); + return -1; + } + LM_DBG("storing transaction %u:%u for r-uri: %.*s\n", t->hash_index, t->label, ruri.len, ruri.s); lock_entry_by_ruri(&ruri);