Browse code

topoh: safety check for To header

- protection for the case when sanity module checks are not enabled
- reported in FS#303 by Michel de Weerd

Daniel-Constantin Mierla authored on 16/06/2013 15:17:36
Showing 1 changed files
... ...
@@ -227,7 +227,13 @@ int th_prepare_msg(sip_msg_t *msg)
227 227
 		LM_ERR("cannot parse FROM header\n");
228 228
 		return 3;
229 229
 	}
230
-	
230
+
231
+	if(get_to(msg)==NULL)
232
+	{
233
+		LM_ERR("cannot parse TO header\n");
234
+		return 3;
235
+	}
236
+
231 237
 	return 0;
232 238
 }
233 239