Browse code

core: msg_ldata_t field is memset to 0 in the shm clone

Daniel-Constantin Mierla authored on 19/09/2013 13:50:29
Showing 1 changed files
... ...
@@ -550,6 +550,8 @@ struct sip_msg*  sip_msg_shm_clone( struct sip_msg *org_msg, int *sip_msg_len,
550 550
 	new_msg->location_ua.len=0;
551 551
 	/* reg_id is not cloned (it's reset instead) */
552 552
 	new_msg->reg_id=0;
553
+	/* local data struct is not cloned (it's reset instead) */
554
+	memset(&new_msg->ldv, 0, sizeof(msg_ldata_t));
553 555
 	/* message buffers(org and scratch pad) */
554 556
 	memcpy( p , org_msg->buf, org_msg->len);
555 557
 	/* ZT to be safer */