Skip to content

Commit

Permalink
Do not simply link the buffered lumps, but better clone them -> this …
Browse files Browse the repository at this point in the history
…will avoid a mixage of lump types (shm versus pkg) when using async()
  • Loading branch information
Varghese Paul committed Jun 19, 2019
1 parent e85aa14 commit c263182
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 c263182

Please sign in to comment.