Ignore:
Timestamp:
Oct 1, 2014 4:21:55 AM (10 years ago)
Author:
ming
Message:

Re #1782 (misc): Do not copy the public address and bound address if pjsua_acc_modify()'s new setting doesn't change those

File:
1 edited

Legend:

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

    r4897 r4935  
    12831283                                   &cfg->rtp_cfg); 
    12841284    } else { 
     1285        pj_str_t p_addr = acc->cfg.rtp_cfg.public_addr; 
     1286        pj_str_t b_addr = acc->cfg.rtp_cfg.bound_addr; 
     1287         
    12851288        /* ..to save memory by not using the pool */ 
    12861289        acc->cfg.rtp_cfg =  cfg->rtp_cfg; 
     1290        acc->cfg.rtp_cfg.public_addr = p_addr; 
     1291        acc->cfg.rtp_cfg.bound_addr = b_addr; 
    12871292    } 
    12881293 
Note: See TracChangeset for help on using the changeset viewer.