- Timestamp:
- Nov 20, 2009 7:48:41 AM (15 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c
r3006 r3020 768 768 /* Connecting */ 769 769 else { 770 /* On failure, reset SSL socket state first, as app may try to 771 * reconnect in the callback. 772 */ 773 if (status != PJ_SUCCESS) { 774 reset_ssl_sock_state(ssock); 775 } 770 776 if (ssock->param.cb.on_connect_complete) { 771 777 pj_bool_t ret; … … 773 779 if (ret == PJ_FALSE) 774 780 return PJ_FALSE; 775 }776 if (status != PJ_SUCCESS) {777 /* Reset SSL socket state */778 reset_ssl_sock_state(ssock);779 781 } 780 782 } … … 2078 2080 goto on_error; 2079 2081 2082 /* Save remote address */ 2083 pj_sockaddr_cp(&ssock->rem_addr, remaddr); 2084 2080 2085 status = pj_activesock_start_connect(ssock->asock, pool, remaddr, 2081 2086 addr_len); … … 2098 2103 */ 2099 2104 2100 /* Set remote address */2101 pj_sockaddr_cp(&ssock->rem_addr, remaddr);2102 2103 2105 /* Update SSL state */ 2104 2106 ssock->is_server = PJ_FALSE; -
pjproject/trunk/pjsip/src/pjsip/sip_transport_tls.c
r3000 r3020 885 885 { 886 886 /* Update port only */ 887 pj_sockaddr_set_port( (pj_sockaddr_t*)&tls->base.local_addr,887 pj_sockaddr_set_port(&tls->base.local_addr, 888 888 new_port); 889 889 }
Note: See TracChangeset
for help on using the changeset viewer.