From c263182ee4dd692212ca310feb8a902714b93b45 Mon Sep 17 00:00:00 2001 From: Varghese Paul Date: Wed, 19 Jun 2019 13:39:51 -0700 Subject: [PATCH] Do not simply link the buffered lumps, but better clone them -> this will avoid a mixage of lump types (shm versus pkg) when using async() --- modules/rr/record.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/rr/record.c b/modules/rr/record.c index 8fe6a80e84..a7e4a94c4f 100644 --- a/modules/rr/record.c +++ b/modules/rr/record.c @@ -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;