Changeset 3591


Ignore:
Timestamp:
Jun 20, 2011 6:22:28 AM (13 years ago)
Author:
nanang
Message:

Fixed #1310:

  • protected the account validation in the registration callback.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_acc.c

    r3566 r3591  
    16361636    pjsua_acc *acc = (pjsua_acc*) param->token; 
    16371637 
    1638     if (param->regc != acc->regc) 
     1638    PJSUA_LOCK(); 
     1639 
     1640    if (param->regc != acc->regc) { 
     1641        PJSUA_UNLOCK(); 
    16391642        return; 
    1640  
    1641     PJSUA_LOCK(); 
     1643    } 
    16421644 
    16431645    /* 
Note: See TracChangeset for help on using the changeset viewer.