Browse code

more DBG_MSG_QA

Jiri Kuthan authored on 06/09/2002 10:24:25
Showing 1 changed files
... ...
@@ -466,6 +466,13 @@ char * build_req_buf_from_sip_req( struct sip_msg* msg,
466 466
 	memcpy(new_buf+offset, orig+s_offset, len-s_offset);
467 467
 	new_buf[new_len]=0;
468 468
 
469
+#ifdef DBG_MSG_QA
470
+	if (new_buf[new_len-1]==0) {
471
+		LOG(L_ERR, "ERROR: build_req_buf_from_sip_req: 0 in the end\n");
472
+		abort();
473
+	}
474
+#endif
475
+
469 476
 	*returned_len=new_len;
470 477
 	return new_buf;
471 478