Changeset 4321


Ignore:
Timestamp:
Jan 17, 2013 9:45:32 AM (11 years ago)
Author:
bennylp
Message:

Fixed #1610: Workaround for reported crash on stun_sock's on_data_recvfrom() callback

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/stun_sock.c

    r3999 r4321  
    391391     */ 
    392392    if (stun_sock->active_sock != NULL) { 
     393        pj_activesock_set_user_data(stun_sock->active_sock, NULL); 
    393394        pj_activesock_close(stun_sock->active_sock); 
    394395        stun_sock->active_sock = NULL; 
     
    766767 
    767768    stun_sock = (pj_stun_sock*) pj_activesock_get_user_data(asock); 
     769    if (!stun_sock) 
     770        return PJ_FALSE; 
    768771 
    769772    /* Log socket error */ 
Note: See TracChangeset for help on using the changeset viewer.