Ignore:
Timestamp:
Oct 31, 2008 4:26:27 PM (16 years ago)
Author:
bennylp
Message:

Ticket #673: Crash in SRTP transport when receiving stray RTP/RTCP packet

File:
1 edited

Legend:

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

    r2353 r2360  
    799799 
    800800    if (srtp->bypass_srtp) { 
    801         srtp->rtp_cb(srtp->user_data, pkt, size); 
     801        /* Callback may be NULL if we receive stray packets (or when packet 
     802         * is received while we're being detached/re-attached). 
     803         */ 
     804        if (srtp->rtp_cb) { 
     805            srtp->rtp_cb(srtp->user_data, pkt, size); 
     806        } 
    802807        return; 
    803808    } 
     
    859864 
    860865    if (srtp->bypass_srtp) { 
     866        /* Callback may be NULL if we receive stray packets (or when packet 
     867         * is received while we're being detached/re-attached). 
     868         */ 
    861869        srtp->rtcp_cb(srtp->user_data, pkt, size); 
    862870        return; 
Note: See TracChangeset for help on using the changeset viewer.