Changeset 1292


Ignore:
Timestamp:
May 23, 2007 2:12:35 PM (12 years ago)
Author:
bennylp
Message:

Fixed ticket #291: Free memory read in PUBLISH session

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-simple/publishc.c

    r1241 r1292  
    545545        /* Call callback. */ 
    546546        if (expiration == 0xFFFF) expiration = -1; 
     547 
     548        /* Temporarily increment pending_tsx to prevent callback from 
     549         * destroying pubc. 
     550         */ 
     551        ++pubc->pending_tsx; 
     552 
    547553        call_callback(pubc, PJ_SUCCESS, tsx->status_code,  
    548554                      (rdata ? &rdata->msg_info.msg->line.status.reason  
     
    550556                      rdata, expiration); 
    551557 
     558        --pubc->pending_tsx; 
    552559    } 
    553560 
Note: See TracChangeset for help on using the changeset viewer.