Fixed case when tdata is NULL pjsip_tx_data_get_info()

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1631 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2007-12-14 17:18:16 +00:00
parent 0658afb554
commit 3a4628397e
1 changed files with 2 additions and 3 deletions

View File

@ -475,13 +475,12 @@ static char *get_msg_info(pj_pool_t *pool, const char *obj_name,
PJ_DEF(char*) pjsip_tx_data_get_info( pjsip_tx_data *tdata )
{
if (tdata==NULL || tdata->msg==NULL)
return "NULL";
if (tdata->info)
return tdata->info;
if (tdata==NULL || tdata->msg==NULL)
return "NULL";
pj_lock_acquire(tdata->lock);
tdata->info = get_msg_info(tdata->pool, tdata->obj_name, tdata->msg);
pj_lock_release(tdata->lock);