Changeset 4579


Ignore:
Timestamp:
Aug 6, 2013 6:52:43 AM (11 years ago)
Author:
bennylp
Message:

Re #1669: fixed bug introduced by r4523 which caused pjsua_acc_modify() to always reregister regardless of whether there is change or not

File:
1 edited

Legend:

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

    r4546 r4579  
    10491049    { 
    10501050        unsigned i; 
     1051        pj_bool_t cred_changed = PJ_FALSE; 
    10511052 
    10521053        /* Selective update credential info. */ 
     
    10721073            /* Not found, insert this */ 
    10731074            if (j == acc->cfg.cred_count) { 
     1075                cred_changed = PJ_TRUE; 
     1076 
    10741077                /* If account credential is full, discard the last one. */ 
    10751078                if (acc->cfg.cred_count == PJ_ARRAY_SIZE(acc->cfg.cred_info)) { 
     
    10981101        } 
    10991102 
    1100         update_reg = PJ_TRUE; 
    1101         unreg_first = PJ_TRUE; 
     1103        if (cred_changed) { 
     1104            update_reg = PJ_TRUE; 
     1105            unreg_first = PJ_TRUE; 
     1106        } 
    11021107    } 
    11031108 
Note: See TracChangeset for help on using the changeset viewer.