Changeset 1427 for pjproject


Ignore:
Timestamp:
Aug 31, 2007 12:35:56 PM (17 years ago)
Author:
bennylp
Message:

Fixed ticket #366: Crash in SDP negotiator when initial local SDP is not specified in pjmedia_sdp_neg_create_w_local_offer() (thanks Philippe Leuba)

File:
1 edited

Legend:

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

    r1417 r1427  
    335335    /* State now is STATE_WAIT_NEGO. */ 
    336336    neg->state = PJMEDIA_SDP_NEG_STATE_WAIT_NEGO; 
    337     if (local) 
     337    if (local) { 
     338        if (!neg->initial_sdp) { 
     339            neg->initial_sdp = pjmedia_sdp_session_clone(pool, local); 
     340        } 
    338341        neg->neg_local_sdp = pjmedia_sdp_session_clone(pool, local); 
    339     else { 
     342    } else { 
    340343        PJ_ASSERT_RETURN(neg->initial_sdp, PJMEDIA_SDPNEG_ENOINITIAL); 
    341344        neg->neg_local_sdp = pjmedia_sdp_session_clone(pool, neg->initial_sdp); 
Note: See TracChangeset for help on using the changeset viewer.