Changeset 4344
- Timestamp:
- Feb 8, 2013 7:33:23 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/stun_sock.c
r4343 r4344 391 391 } 392 392 393 if (stun_sock->stun_sess) { 394 pj_stun_session_set_user_data(stun_sock->stun_sess, NULL); 395 } 396 393 397 /* Destroy the active socket first just in case we'll get 394 398 * stray callback. 395 399 */ 396 400 if (stun_sock->active_sock != NULL) { 397 pj_activesock_set_user_data(stun_sock->active_sock, NULL); 398 pj_activesock_close(stun_sock->active_sock); 401 pj_activesock_t *asock = stun_sock->active_sock; 399 402 stun_sock->active_sock = NULL; 400 403 stun_sock->sock_fd = PJ_INVALID_SOCKET; 404 pj_activesock_set_user_data(asock, NULL); 405 pj_activesock_close(asock); 401 406 } else if (stun_sock->sock_fd != PJ_INVALID_SOCKET) { 402 407 pj_sock_close(stun_sock->sock_fd); … … 621 626 622 627 stun_sock = (pj_stun_sock *) pj_stun_session_get_user_data(sess); 628 if (!stun_sock || !stun_sock->active_sock) 629 return PJ_EINVALIDOP; 623 630 624 631 pj_assert(token==INTERNAL_MSG_TOKEN); … … 649 656 650 657 stun_sock = (pj_stun_sock *) pj_stun_session_get_user_data(sess); 658 if (!stun_sock) 659 return; 651 660 652 661 PJ_UNUSED_ARG(tdata);
Note: See TracChangeset
for help on using the changeset viewer.