浏览代码

Do not clone sip_msg->body into shared memory

Jan Janak 16 年之前
父节点
当前提交
fc9cfc98af
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      modules/tm/sip_msg.c

+ 1 - 0
modules/tm/sip_msg.c

@@ -524,6 +524,7 @@ struct sip_msg*  sip_msg_cloner( struct sip_msg *org_msg, int *sip_msg_len )
 
 	new_msg->msg_flags |= FL_SHM_CLONE;
 	p += ROUND4(sizeof(struct sip_msg));
+	new_msg->body = 0;
 	new_msg->add_rm = 0;
 	new_msg->body_lumps = 0;
 	new_msg->reply_lump = 0;