Changeset 3010


Ignore:
Timestamp:
Nov 10, 2009 10:57:29 AM (10 years ago)
Author:
bennylp
Message:

More #955 (Python fixes): calling buddy_set_user_data with invalid buddy ID will raise assertion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/python/_pjsua.c

    r3007 r3010  
    20602060    if (!PyArg_ParseTuple(pArgs, "iO", &buddy_id, &user_data)) { 
    20612061        return NULL; 
     2062    } 
     2063 
     2064    if (!pjsua_buddy_is_valid(buddy_id)) { 
     2065        return Py_BuildValue("i", 0); 
    20622066    } 
    20632067 
Note: See TracChangeset for help on using the changeset viewer.