Browse code

tsilo: add check for empty aor

Fix: #1775

Victor Seva authored on 09/01/2019 16:44:09
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);