From 7035991842e7af98a958a649e6bc710789ccde66 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 11 Jan 2024 14:54:13 -0500 Subject: [PATCH] MT#55283 short-cut attribute moving Change-Id: I4114a9d7f120e972867f5949554680ebc9b74a02 --- daemon/call.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/daemon/call.c b/daemon/call.c index b80011283..917186774 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2707,11 +2707,8 @@ static void __media_init_from_flags(struct call_media *other_media, struct call_ */ if (media) { t_queue_clear_full(&media->sdp_attributes, str_free); - for (__auto_type l = additional_attributes->head; l; l = l->next) { - str *source_attr = l->data; - str * destination_attr = str_dup(source_attr); - t_queue_push_tail(&media->sdp_attributes, destination_attr); - } + media->sdp_attributes = *additional_attributes; + t_queue_init(additional_attributes); } // codec and RTP payload types handling