Changeset 266 for pjproject/trunk/pjsip/src/pjsip/sip_util.c
- Timestamp:
- Mar 2, 2006 9:16:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_util.c
r175 r266 1236 1236 /* Add the message body, if any. */ 1237 1237 if (body) { 1238 tdata->msg->body = pj_pool_alloc(tdata->pool, sizeof(pjsip_msg_body)); 1239 status = pjsip_msg_body_clone( tdata->pool, tdata->msg->body, body ); 1240 if (status != PJ_SUCCESS) { 1238 tdata->msg->body = pjsip_msg_body_clone( tdata->pool, body ); 1239 if (tdata->msg->body == NULL) { 1241 1240 pjsip_tx_data_dec_ref(tdata); 1242 1241 return status; … … 1296 1295 /* Add the message body, if any. */ 1297 1296 if (body) { 1298 tdata->msg->body = pj_pool_alloc(tdata->pool, sizeof(pjsip_msg_body)); 1299 status = pjsip_msg_body_clone( tdata->pool, tdata->msg->body, body ); 1300 if (status != PJ_SUCCESS) { 1297 tdata->msg->body = pjsip_msg_body_clone( tdata->pool, body ); 1298 if (tdata->msg->body == NULL) { 1301 1299 pjsip_tx_data_dec_ref(tdata); 1302 1300 return status; … … 1318 1316 if (status != PJ_SUCCESS) { 1319 1317 pjsip_tx_data_dec_ref(tdata); 1320 } else {1318 } else if (p_tsx) { 1321 1319 *p_tsx = tsx; 1322 1320 }
Note: See TracChangeset
for help on using the changeset viewer.