diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/channel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/channel.c b/main/channel.c index d1ea7b438..a278462d1 100644 --- a/main/channel.c +++ b/main/channel.c @@ -3786,8 +3786,7 @@ int ast_do_masquerade(struct ast_channel *original) /* Move data stores over */ if (AST_LIST_FIRST(&clone->datastores)) - AST_LIST_INSERT_TAIL(&original->datastores, AST_LIST_FIRST(&clone->datastores), entry); - AST_LIST_HEAD_INIT_NOLOCK(&clone->datastores); + AST_LIST_APPEND_LIST(&original->datastores, &clone->datastores, entry); clone_variables(original, clone); /* Presense of ADSI capable CPE follows clone */ |