git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@3870 689a6050-402a-0410-94f2-e92a70836424
@@ -447,6 +447,9 @@ do { \
/* sip msg structure */
memcpy( new_msg , org_msg , sizeof(struct sip_msg) );
+ /* avoid copying pointer to un-clonned structures */
+ new_msg->sdp = 0;
+
new_msg->msg_flags |= FL_SHM_CLONE;
p += ROUND4(sizeof(struct sip_msg));
new_msg->add_rm = 0;