Changeset 3012


Ignore:
Timestamp:
Nov 11, 2009 12:21:55 AM (15 years ago)
Author:
bennylp
Message:

Misc (#951): check when app specifies max_calls that is greater than PJSUA_MAX_CALLS (thanks Robbie Hanson for the report)

File:
1 edited

Legend:

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

    r2968 r3012  
    684684    } 
    685685 
     686    /* Verify settings */ 
     687    if (ua_cfg->max_calls >= PJSUA_MAX_CALLS) { 
     688        pjsua_perror(THIS_FILE, "Invalid max_calls setting", PJ_ETOOMANY); 
     689        return PJ_EINVAL; 
     690    } 
     691 
    686692    /* If nameserver is configured, create DNS resolver instance and 
    687693     * set it to be used by SIP resolver. 
Note: See TracChangeset for help on using the changeset viewer.