Changeset 4450 for pjproject


Ignore:
Timestamp:
Mar 22, 2013 8:28:42 AM (12 years ago)
Author:
nanang
Message:

Fix #1649: Invoke SIP TLS transport callback when transport is shutdown by TLS certificate verification error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transport_tls.c

    r4411 r4450  
    15811581    is_shutdown = tls->base.is_shutdown; 
    15821582    pjsip_transport_dec_ref(&tls->base); 
    1583     if (is_shutdown) 
     1583    if (is_shutdown) { 
     1584        status = tls->close_reason; 
     1585        tls_perror(tls->base.obj_name, "TLS connect() error", status); 
     1586 
     1587        /* Cancel all delayed transmits */ 
     1588        while (!pj_list_empty(&tls->delayed_list)) { 
     1589            struct delayed_tdata *pending_tx; 
     1590            pj_ioqueue_op_key_t *op_key; 
     1591 
     1592            pending_tx = tls->delayed_list.next; 
     1593            pj_list_erase(pending_tx); 
     1594 
     1595            op_key = (pj_ioqueue_op_key_t*)pending_tx->tdata_op_key; 
     1596 
     1597            on_data_sent(tls->ssock, op_key, -status); 
     1598        } 
     1599 
    15841600        return PJ_FALSE; 
     1601    } 
    15851602 
    15861603 
Note: See TracChangeset for help on using the changeset viewer.