Changeset 4386


Ignore:
Timestamp:
Feb 27, 2013 10:14:23 AM (6 years ago)
Author:
nanang
Message:

Re #1557: backported to 1.x

Location:
pjproject/branches/1.x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x

  • pjproject/branches/1.x/pjnath/src/pjnath/turn_sock.c

    r3596 r4386  
    211211 
    212212    if (turn_sock->active_sock) { 
     213        pj_activesock_set_user_data(turn_sock->active_sock, NULL); 
    213214        pj_activesock_close(turn_sock->active_sock); 
    214215        turn_sock->active_sock = NULL; 
     
    463464 
    464465    turn_sock = (pj_turn_sock*) pj_activesock_get_user_data(asock); 
     466    if (!turn_sock) 
     467        return PJ_FALSE; 
     468 
     469    /* TURN session may have already been destroyed here. 
     470     * See ticket #1557 (http://trac.pjsip.org/repos/ticket/1557). 
     471     */ 
     472    if (!turn_sock->sess) { 
     473        sess_fail(turn_sock, "TURN session already destroyed", status); 
     474        return PJ_FALSE; 
     475    } 
    465476 
    466477    if (status != PJ_SUCCESS) { 
Note: See TracChangeset for help on using the changeset viewer.