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
pull/1126/merge
Donat Zenichev 1 week ago
parent 2b8b628373
commit 1d9b45c805

@ -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;

Loading…
Cancel
Save