Skip to content

Commit

Permalink
Set proper UPDATED flag upon cloning.
Browse files Browse the repository at this point in the history
IF the cloning is full (with the updatable part too), set the UPDATED flag too
  • Loading branch information
bogdan-iancu authored and razvancrainea committed Nov 22, 2017
1 parent 54b9804 commit 871de96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tm/sip_msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ struct sip_msg* sip_msg_cloner( struct sip_msg *org_msg, int *sip_msg_len,
CLONE_RPL_LUMP_LIST( p, &(new_msg->reply_lump), org_msg->reply_lump);

case 1: /* updatable and cloning now */
new_msg->msg_flags |= FL_SHM_UPDATABLE;
new_msg->msg_flags |= FL_SHM_UPDATABLE|FL_SHM_UPDATED;
/* msg is updatable -> the fields that can be updated are allocated in
* separate memory chunks */
tm_shm_lock();
Expand Down

0 comments on commit 871de96

Please sign in to comment.