2
0
Jiri Kuthan 23 жил өмнө
parent
commit
6cd1dc3423
1 өөрчлөгдсөн 7 нэмэгдсэн , 0 устгасан
  1. 7 0
      msg_translator.c

+ 7 - 0
msg_translator.c

@@ -466,6 +466,13 @@ char * build_req_buf_from_sip_req( struct sip_msg* msg,
 	memcpy(new_buf+offset, orig+s_offset, len-s_offset);
 	new_buf[new_len]=0;
 
+#ifdef DBG_MSG_QA
+	if (new_buf[new_len-1]==0) {
+		LOG(L_ERR, "ERROR: build_req_buf_from_sip_req: 0 in the end\n");
+		abort();
+	}
+#endif
+
 	*returned_len=new_len;
 	return new_buf;