Changeset 3538


Ignore:
Timestamp:
Apr 14, 2011 3:38:23 PM (9 years ago)
Author:
bennylp
Message:

Fixed #1232: Possible memory corruptions caused by pjsua_acc_modify() (thanks Viktor Krikun for the report)

File:
1 edited

Legend:

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

    r3490 r3538  
    752752    if (id_name_addr && id_sip_uri) { 
    753753        pj_strdup_with_null(acc->pool, &acc->cfg.id, &cfg->id); 
    754         acc->display = id_name_addr->display; 
    755         acc->user_part = id_sip_uri->user; 
    756         acc->srv_domain = id_sip_uri->host; 
     754        pj_strdup_with_null(acc->pool, &acc->display, &id_name_addr->display); 
     755        pj_strdup_with_null(acc->pool, &acc->user_part, &id_sip_uri->user); 
     756        pj_strdup_with_null(acc->pool, &acc->srv_domain, &id_sip_uri->host); 
    757757        acc->srv_port = 0; 
    758758        update_reg = PJ_TRUE; 
Note: See TracChangeset for help on using the changeset viewer.