Changeset 1903


Ignore:
Timestamp:
Apr 1, 2008 6:21:46 PM (17 years ago)
Author:
bennylp
Message:

Ticket #519: STUN request is not freed when transaction times out (thanks Amit Sharma)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/stun_session.c

    r1879 r1903  
    382382                                        src_addr, src_addr_len); 
    383383    } 
     384 
     385    /* Destroy the transmit data. This will remove the transaction 
     386     * from the pending list too.  
     387     */ 
     388    pj_stun_msg_destroy_tdata(sess, tdata); 
     389    tdata = NULL; 
    384390} 
    385391 
     
    10331039    } 
    10341040 
    1035     /* If transaction has completed, destroy the transmit data. 
    1036      * This will remove the transaction from the pending list too. 
    1037      */ 
    1038     if (pj_stun_client_tsx_is_complete(tdata->client_tsx)) { 
    1039         pj_stun_msg_destroy_tdata(sess, tdata); 
    1040         tdata = NULL; 
    1041     } 
    1042  
    10431041    return PJ_SUCCESS; 
    10441042} 
Note: See TracChangeset for help on using the changeset viewer.