Changeset 5105
- Timestamp:
- Jun 11, 2015 12:12:21 PM (9 years ago)
- Location:
- pjproject/trunk/pjsip/src/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_transport_tcp.c
r5090 r5105 1087 1087 char addr[PJ_INET6_ADDRSTRLEN+10]; 1088 1088 pjsip_tp_state_callback state_cb; 1089 pj_sockaddr tmp_src_addr; 1089 pj_sockaddr tmp_src_addr, tmp_dst_addr; 1090 int addr_len; 1090 1091 pj_status_t status; 1091 1092 … … 1124 1125 pj_sockaddr_cp(&tmp_src_addr, src_addr); 1125 1126 1127 /* Get local address */ 1128 addr_len = sizeof(tmp_dst_addr); 1129 status = pj_sock_getsockname(sock, &tmp_dst_addr, &addr_len); 1130 if (status != PJ_SUCCESS) { 1131 pj_sockaddr_cp(&tmp_dst_addr, &listener->factory.local_addr); 1132 } 1133 1126 1134 /* 1127 1135 * Incoming connection! … … 1129 1137 */ 1130 1138 status = tcp_create( listener, NULL, sock, PJ_TRUE, 1131 &listener->factory.local_addr, 1132 &tmp_src_addr, &tcp); 1139 &tmp_dst_addr, &tmp_src_addr, &tcp); 1133 1140 if (status == PJ_SUCCESS) { 1134 1141 status = tcp_start_read(tcp); -
pjproject/trunk/pjsip/src/pjsip/sip_transport_tls.c
r5090 r5105 1210 1210 */ 1211 1211 status = tls_create( listener, NULL, new_ssock, PJ_TRUE, 1212 &listener->factory.local_addr, 1213 &tmp_src_addr, NULL, &tls); 1212 &ssl_info.local_addr, &tmp_src_addr, NULL, &tls); 1214 1213 1215 1214 if (status != PJ_SUCCESS)
Note: See TracChangeset
for help on using the changeset viewer.