From c52a6d567d854fc120420265b499a8b00314d88f Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 11 Jan 2024 14:31:19 -0500 Subject: [PATCH] MT#55283 clarify attribute moving An empty attribute list is not the indicative factor of whether or not to empty out and re-fill the list of attributes, as having no attributes is a valid scenario and should lead to no attributes present on the output side. Change-Id: I3464cd6cf0709a38b7c89a2f138d7a0329ce993b --- daemon/call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/call.c b/daemon/call.c index c1329f25d..b80011283 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2705,7 +2705,7 @@ static void __media_init_from_flags(struct call_media *other_media, struct call_ * extmap * other (unknown type) */ - if (media && additional_attributes && additional_attributes->head) { + 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;