Browse code

Merge pull request #1802 from kamailio/vseva_1775

tsilo: add check for empty aor

Federico Cabiddu authored on 10/01/2019 08:46:25
Showing 1 changed files
... ...
@@ -71,6 +71,11 @@ int ts_store(struct sip_msg* msg, str *puri) {
71 71
 	else
72 72
 		aor = ruri.user;
73 73
 
74
+	if(aor.s==NULL) {
75
+		LM_ERR("malformed aor from uri[%.*s]\n", suri.len, suri.s);
76
+		return -1;
77
+	}
78
+
74 79
 	t = _tmb.t_gett();
75 80
 	if (!t || t==T_UNDEFINED) {
76 81
 		LM_ERR("no transaction defined for %.*s\n", aor.len, aor.s);