Changeset 1616


Ignore:
Timestamp:
Dec 5, 2007 4:07:37 AM (17 years ago)
Author:
bennylp
Message:

Fixed mapped_address's address family not set causing assertion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r1615 r1616  
    354354                goto on_error; 
    355355 
    356             for (i=0; i<2; ++i) 
     356            for (i=0; i<2; ++i) { 
     357                pj_sockaddr_in_init(&mapped_addr[i], NULL, 0); 
    357358                mapped_addr[i].sin_addr.s_addr = addr.ipv4.sin_addr.s_addr; 
     359            } 
    358360 
    359361            mapped_addr[0].sin_port=pj_htons((pj_uint16_t)next_rtp_port); 
Note: See TracChangeset for help on using the changeset viewer.