浏览代码

core: init via_len to cope with no via update flag

Daniel-Constantin Mierla 16 年之前
父节点
当前提交
6be3dfe5d0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      msg_translator.c

+ 1 - 0
msg_translator.c

@@ -1551,6 +1551,7 @@ char * build_req_buf_from_sip_req( struct sip_msg* msg,
 	received_buf=0;
 	rport_buf=0;
 	line_buf=0;
+	via_len=0;
 
 	flags=msg->msg_flags|global_req_flags;
 	/* Calculate message body difference and adjust Content-Length */