Changeset 2424 for pjproject


Ignore:
Timestamp:
Jan 20, 2009 10:35:01 AM (16 years ago)
Author:
nanang
Message:

Ticket #698: Fixed the silly bug of possible NULL opt access.

File:
1 edited

Legend:

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

    r2394 r2424  
    385385    srtp->bypass_srtp = PJ_FALSE; 
    386386    srtp->probation_cnt = PROBATION_CNT_INIT; 
    387     srtp->peer_use = opt->use; 
    388387 
    389388    if (opt) { 
     
    423422    /* Set underlying transport */ 
    424423    srtp->member_tp = tp; 
     424 
     425    /* Initialize peer's SRTP usage mode. */ 
     426    srtp->peer_use = srtp->setting.use; 
    425427 
    426428    /* Done */ 
Note: See TracChangeset for help on using the changeset viewer.