From 1d9b45c805e358c231ba3da3bc0a9d39fd603d86 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Fri, 8 May 2026 07:21:53 +0200 Subject: [PATCH] MT#61856 sdp.c: `sdp_attr_dup()` fully copy strs Not only the `.name` and `.value` but also the rest (so the `.line_value` and `.key`). If not to do so, this may affect future generic logic. Change-Id: I786aa52233af6bf4324ed401873df42fc7f63c46 --- daemon/sdp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/sdp.c b/daemon/sdp.c index e22e67062..9716e5a29 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -1892,6 +1892,8 @@ static struct sdp_attr *sdp_attr_dup(const struct sdp_attribute *c) { ac->strs.name = call_str_cpy(&c->strs.name); ac->strs.value = call_str_cpy(&c->strs.value); + ac->strs.line_value = call_str_cpy(&c->strs.line_value); + ac->strs.key = call_str_cpy(&c->strs.key); ac->other = c->other; ac->attr = c->attr;