Commit 1cea94b9 authored by Mickaël Turnel's avatar Mickaël Turnel
Browse files

Fix missing copy member when cloning a belle_sip_header_address

parent 11f4c9c6
...@@ -207,6 +207,9 @@ static void _belle_sip_header_address_clone(belle_sip_header_address_t *addr, co ...@@ -207,6 +207,9 @@ static void _belle_sip_header_address_clone(belle_sip_header_address_t *addr, co
if (belle_sip_header_address_get_absolute_uri(orig)) { if (belle_sip_header_address_get_absolute_uri(orig)) {
belle_sip_header_address_set_absolute_uri(addr,BELLE_GENERIC_URI(belle_sip_object_clone(BELLE_SIP_OBJECT(belle_sip_header_address_get_absolute_uri(orig))))); belle_sip_header_address_set_absolute_uri(addr,BELLE_GENERIC_URI(belle_sip_object_clone(BELLE_SIP_OBJECT(belle_sip_header_address_get_absolute_uri(orig)))));
} }
if (belle_sip_header_address_get_automatic(orig)) {
belle_sip_header_address_set_automatic(addr,belle_sip_header_address_get_automatic(orig));
}
belle_sip_parameters_copy_parameters_from(&addr->base, &orig->base); belle_sip_parameters_copy_parameters_from(&addr->base, &orig->base);
} }
belle_sip_header_address_t* belle_sip_header_address_clone(const belle_sip_header_address_t* orig) { belle_sip_header_address_t* belle_sip_header_address_clone(const belle_sip_header_address_t* orig) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment