Changeset 5586 for pjproject


Ignore:
Timestamp:
Apr 25, 2017 9:45:10 AM (8 years ago)
Author:
riza
Message:

Fix #2013: Prevent crash when timer refresh with SRTP is interrupted by a re-INVITE.

Location:
pjproject/trunk
Files:
2 edited

Legend:

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

    r5566 r5586  
    12541254        return PJMEDIA_SDP_EINATTR; 
    12551255    } 
    1256     crypto->name = token; 
     1256    pj_strdup(pool, &crypto->name, &token);     
    12571257 
    12581258    /* Key method */ 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r5571 r5586  
    30223022                call_med->dir = PJMEDIA_DIR_NONE; 
    30233023 
    3024             } else { 
     3024            } else if (call_med->tp) { 
    30253025                pjmedia_transport_info tp_info; 
    30263026                pjmedia_srtp_info *srtp_info; 
     
    31803180                call_med->dir = PJMEDIA_DIR_NONE; 
    31813181 
    3182             } else { 
     3182            } else if (call_med->tp) { 
    31833183                pjmedia_transport_info tp_info; 
    31843184                pjmedia_srtp_info *srtp_info; 
Note: See TracChangeset for help on using the changeset viewer.