Changeset 6115
- Timestamp:
- Dec 4, 2019 9:01:19 AM (5 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/transport_srtp.c
r5982 r6115 1641 1641 1642 1642 /* All keying method failed to process remote SDP? */ 1643 if (srtp->keying_cnt == 0) 1643 if (srtp->keying_cnt == 0) { 1644 if (keying_status != PJ_SUCCESS) { 1645 DEACTIVATE_MEDIA(sdp_pool, sdp_local->media[media_index]); 1646 } 1644 1647 return keying_status; 1648 } 1645 1649 1646 1650 /* Bypass SRTP & skip keying as SRTP is disabled and verification on -
pjproject/trunk/pjmedia/src/pjmedia/transport_srtp_sdes.c
r5982 r6115 473 473 for (j=0; j<cr_attr_count; ++j) { 474 474 if (tags[j] == tags[cr_attr_count]) { 475 DEACTIVATE_MEDIA(sdp_pool, m_loc);475 //DEACTIVATE_MEDIA(sdp_pool, m_loc); 476 476 return PJMEDIA_SRTP_ESDPDUPCRYPTOTAG; 477 477 } … … 514 514 */ 515 515 if ((!has_crypto_attr || matched_idx == -1) && 516 rem_proto == PJMEDIA_TP_PROTO_RTP_AVP) 516 !PJMEDIA_TP_PROTO_HAS_FLAG(rem_proto, 517 PJMEDIA_TP_PROFILE_SRTP)) 517 518 { 518 519 return PJ_SUCCESS; … … 527 528 /* No crypto attr */ 528 529 if (!has_crypto_attr) { 529 DEACTIVATE_MEDIA(sdp_pool, m_loc);530 //DEACTIVATE_MEDIA(sdp_pool, m_loc); 530 531 return PJMEDIA_SRTP_ESDPREQCRYPTO; 531 532 } … … 533 534 /* No crypto match */ 534 535 if (matched_idx == -1) { 535 DEACTIVATE_MEDIA(sdp_pool, m_loc);536 //DEACTIVATE_MEDIA(sdp_pool, m_loc); 536 537 return PJMEDIA_SRTP_ENOTSUPCRYPTO; 537 538 }
Note: See TracChangeset
for help on using the changeset viewer.