浏览代码

DBG_MSG_QA introduced

Jiri Kuthan 23 年之前
父节点
当前提交
40ac69d466
共有 1 个文件被更改,包括 6 次插入0 次删除
  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 */
 	/* ... and build it now */
 	buf=build_req_buf_from_sip_req( i_req, len, send_sock );
 	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) {
 	if (!buf) {
 		LOG(L_ERR, "ERROR: print_uac_request: no pkg_mem\n"); 
 		LOG(L_ERR, "ERROR: print_uac_request: no pkg_mem\n"); 
 		ser_error=E_OUT_OF_MEM;
 		ser_error=E_OUT_OF_MEM;