Ignore:
Timestamp:
Apr 17, 2008 5:25:37 PM (16 years ago)
Author:
bennylp
Message:

SIPit ICE test: fixed crashed with ICE negotiation, fixed empty (0.0.0.0) srflx addr, etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/ice-turn07/pjnath/src/pjnath/ice_strans.c

    r1926 r1932  
    954954            } 
    955955 
     956            /* Skip if candidate has no address */ 
     957            if (!pj_sockaddr_has_addr(&cand->addr)) { 
     958                PJ_LOG(5,(ice_st->obj_name,  
     959                          "Candidate %d in component %d is not added", 
     960                          j, i)); 
     961                continue; 
     962            } 
     963 
    956964            if (cand->type == PJ_ICE_CAND_TYPE_RELAYED) { 
    957965                local_addr = &cand->addr; 
     
    964972                                          cand->type, cand->local_pref,  
    965973                                          &cand->foundation, &cand->addr,  
    966                                           &comp->local_addr, NULL,  
     974                                          local_addr, relay_addr,  
    967975                                          sizeof(pj_sockaddr_in),  
    968976                                          (unsigned*)&cand->ice_cand_id); 
     
    13161324    } 
    13171325 
     1326    if (comp->ice_st->ice == NULL) { 
     1327        /* The session is gone */ 
     1328        return; 
     1329    } 
     1330 
    13181331    /* Find candidate ID for this packet */ 
    13191332    for (cand_id=0; cand_id<comp->cand_cnt; ++cand_id) { 
Note: See TracChangeset for help on using the changeset viewer.