Browse Source

DBG_MSG_QA introduced

Jiri Kuthan 23 years ago
parent
commit
40ac69d466
1 changed files with 6 additions and 0 deletions
  1. 6 0
      modules/tm/t_fwd.c

+ 6 - 0
modules/tm/t_fwd.c

@@ -54,6 +54,12 @@ char *print_uac_request( struct cell *t, struct sip_msg *i_req,
 
 	/* ... and build it now */
 	buf=build_req_buf_from_sip_req( i_req, len, send_sock );
+#ifdef DBG_MSG_QA
+	if (buf[*len-1]==0) {
+		LOG(L_ERR, "ERROR: print_uac_request: sanity check failed\n");
+		abort();
+	}
+#endif
 	if (!buf) {
 		LOG(L_ERR, "ERROR: print_uac_request: no pkg_mem\n"); 
 		ser_error=E_OUT_OF_MEM;