MT#55283 handle possible null

Change-Id: Id643455c7440a954ce70c138f58eca244fc40849
pull/2090/head
Richard Fuchs 1 month ago
parent b83f520cff
commit dd3b4eae7f

@ -1706,6 +1706,7 @@ static void __generate_crypto(const sdp_ng_flags *flags, struct call_media *this
assert(num_crypto_suites <= sizeof(types_offered) * 8); assert(num_crypto_suites <= sizeof(types_offered) * 8);
/* always consider by default that offerer doesn't need re-ordering */ /* always consider by default that offerer doesn't need re-ordering */
if (other)
MEDIA_CLEAR(other, REORDER_FORCED); MEDIA_CLEAR(other, REORDER_FORCED);
/* add offered crypto parameters */ /* add offered crypto parameters */
@ -1832,6 +1833,7 @@ static void __generate_crypto(const sdp_ng_flags *flags, struct call_media *this
if (reorder_sdes_preferences(offered_cpq, offered_order)) { if (reorder_sdes_preferences(offered_cpq, offered_order)) {
/* affects a proper handling of crypto suites ordering, /* affects a proper handling of crypto suites ordering,
* when sending processed answer to the media session originator */ * when sending processed answer to the media session originator */
if (other)
MEDIA_SET(other, REORDER_FORCED); MEDIA_SET(other, REORDER_FORCED);
} }
} }

Loading…
Cancel
Save