Changeset 5184


Ignore:
Timestamp:
Oct 1, 2015 4:43:28 AM (9 years ago)
Author:
nanang
Message:

Fix #1891: Also match base address in find local candidate after receiving ICE check response.

File:
1 edited

Legend:

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

    r5170 r5184  
    23242324    pj_assert(lcand == NULL); 
    23252325    for (i=0; i<ice->lcand_cnt; ++i) { 
    2326         if (pj_sockaddr_cmp(&xaddr->sockaddr, &ice->lcand[i].addr) == 0) { 
     2326        /* Ticket #1891: apply additional check as there may be a shared 
     2327         * mapped address for different base/local addresses. 
     2328         */ 
     2329        if (pj_sockaddr_cmp(&xaddr->sockaddr, &ice->lcand[i].addr) == 0 && 
     2330            pj_sockaddr_cmp(&check->lcand->base_addr, 
     2331                            &ice->lcand[i].base_addr) == 0) 
     2332        { 
    23272333            /* Match */ 
    23282334            lcand = &ice->lcand[i]; 
Note: See TracChangeset for help on using the changeset viewer.