Module: kamailio Branch: master Commit: 37c78454408043e5d285cbc82681f9e2cc634cf5 URL: https://github.com/kamailio/kamailio/commit/37c78454408043e5d285cbc82681f9e2cc634cf5
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2025-12-04T07:49:04+01:00 core: parser/sdp - copy data after structure when cloning ice attr and opt --- Modified: src/core/parser/sdp/sdp.c --- Diff: https://github.com/kamailio/kamailio/commit/37c78454408043e5d285cbc82681f9e2cc634cf5.diff Patch: https://github.com/kamailio/kamailio/commit/37c78454408043e5d285cbc82681f9e2cc634cf5.patch --- diff --git a/src/core/parser/sdp/sdp.c b/src/core/parser/sdp/sdp.c index 5eb04b0c047..84a927d4723 100644 --- a/src/core/parser/sdp/sdp.c +++ b/src/core/parser/sdp/sdp.c @@ -1233,7 +1233,7 @@ sdp_ice_attr_t *clone_sdp_ice_attr(sdp_ice_attr_t *ice_attr) } memset(clone_ice_attr, 0, len); - p = (char *)(clone_ice_attr); /* beginning of the struct */ + p = (char *)(clone_ice_attr + 1); /* foundation */ if(ice_attr->foundation.len) { @@ -1301,7 +1301,7 @@ sdp_ice_opt_t *clone_sdp_opt_attr(sdp_ice_opt_t *ice_opt) return NULL; } memset(clone_ice_opt, 0, len); - p = (char *)(clone_ice_opt); /* beginning of the struct */ + p = (char *)(clone_ice_opt + 1); /* ice option */ if(ice_opt->option.len) { _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
