From 104737de2dac966a10ac8ca0fbf3a2891207a1ef Mon Sep 17 00:00:00 2001 From: Nicholas Buchanan Date: Thu, 9 Jul 2020 11:22:56 -0500 Subject: [PATCH] fix list->rm_pt to not copy rm_pt from other sdp in memory --- libsofia-sip-ua/sdp/sdp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libsofia-sip-ua/sdp/sdp.c b/libsofia-sip-ua/sdp/sdp.c index 62c618da..3f0d3773 100644 --- a/libsofia-sip-ua/sdp/sdp.c +++ b/libsofia-sip-ua/sdp/sdp.c @@ -1890,6 +1890,9 @@ sdp_rtpmap_t *sdp_rtpmap_find_matching(sdp_rtpmap_t const *list, if (!su_casematch(rm->rm_encoding, list->rm_encoding)) continue; + if (rm->rm_pt != list->rm_pt ) + continue; + lparam = rm->rm_params; rparam = list->rm_params; if (lparam == rparam)