- Timestamp:
- Jan 12, 2017 2:22:18 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/nat_detect.c
r5359 r5523 181 181 182 182 addr_len = pj_sockaddr_get_len(server); 183 pj_ bzero(&local, sizeof(pj_sockaddr));183 pj_sockaddr_init(server->addr.sa_family, &local, NULL, 0); 184 184 status = pj_sock_bind(sock, &local, addr_len); 185 185 if (status != PJ_SUCCESS) { … … 281 281 * Bind to any. 282 282 */ 283 pj_bzero(&sess->local_addr, sizeof(pj_sockaddr));284 283 addr_len = pj_sockaddr_get_len(server); 284 pj_sockaddr_init(server->addr.sa_family, &sess->local_addr, NULL, 0); 285 285 status = pj_sock_bind(sess->sock, &sess->local_addr, addr_len); 286 286 if (status != PJ_SUCCESS)
Note: See TracChangeset
for help on using the changeset viewer.