Skip to content

Commit

Permalink
Merge pull request #1738 from varghesepaul/2.4
Browse files Browse the repository at this point in the history
Do not simply link the buffered lumps, but better clone them -> this …
  • Loading branch information
bogdan-iancu committed Jun 28, 2019
2 parents 68aaa20 + c263182 commit 08d869b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/rr/record.c
Expand Up @@ -427,10 +427,7 @@ int record_route_preset(struct sip_msg* _m, str* _data)
&& ap->before->u.cond==COND_FALSE) {
/* found our phony anchor lump */
/* jump over the anchor and conditional lumps */
lp = ap->before->before;
/* unlink it */
ap->before->before = NULL;
ap->type = 0;
lp = dup_lump_list(ap->before->before);
/* link the pending buffered params and go at the end of the list*/
for ( l2->before = lp ; l2 && l2->before ; l2=l2->before);
break;
Expand Down

0 comments on commit 08d869b

Please sign in to comment.