Ignore:
Timestamp:
Mar 6, 2018 7:42:54 AM (2 years ago)
Author:
nanang
Message:

Re #2096:

  • Fixed crash in media transport when application calls detach() while the transport only implements detach2().
  • Avoid assertion in UDP media transport when calling detach() without previously calling attach().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/transport_srtp_dtls.c

    r5746 r5750  
    957957 
    958958            pj_bzero(&ap, sizeof(ap)); 
     959            ap.user_data = ds->srtp; 
    959960            pj_sockaddr_cp(&ds->rem_addr, &info.src_rtp_name); 
    960961            pj_sockaddr_cp(&ap.rem_addr, &ds->rem_addr); 
     
    11431144        pjmedia_transport_attach_param ap; 
    11441145        pj_bzero(&ap, sizeof(ap)); 
     1146        ap.user_data = ds->srtp; 
    11451147 
    11461148        if (sdp_remote) 
     
    12941296            pjmedia_transport_attach_param ap; 
    12951297            pj_bzero(&ap, sizeof(ap)); 
     1298            ap.user_data = ds->srtp; 
    12961299 
    12971300            /* Attach ourselves to member transport for DTLS nego. */ 
     
    14211424    /* Attach member transport, so we can send/receive DTLS init packets */ 
    14221425    pj_bzero(&ap, sizeof(ap)); 
     1426    ap.user_data = ds->srtp; 
    14231427    pj_sockaddr_cp(&ap.rem_addr, &ds->rem_addr); 
    14241428    pj_sockaddr_cp(&ap.rem_rtcp, &ds->rem_rtcp); 
Note: See TracChangeset for help on using the changeset viewer.