From 9da5ebeca867322da5ed41e4e9fb3218caf5ab41 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Tue, 4 Apr 2006 11:06:34 +0000 Subject: Changed pjsip_dlg_send_request() API to NOT return transaction as it is not safe against race condition git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@376 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/pjsip-simple/evsub.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pjsip/src/pjsip-simple/evsub.c') diff --git a/pjsip/src/pjsip-simple/evsub.c b/pjsip/src/pjsip-simple/evsub.c index a91232c2..9a9b852d 100644 --- a/pjsip/src/pjsip-simple/evsub.c +++ b/pjsip/src/pjsip-simple/evsub.c @@ -1148,7 +1148,7 @@ PJ_DEF(pj_status_t) pjsip_evsub_send_request( pjsip_evsub *sub, pjsip_dlg_inc_lock(sub->dlg); /* Send the request. */ - status = pjsip_dlg_send_request(sub->dlg, tdata, NULL); + status = pjsip_dlg_send_request(sub->dlg, tdata, -1, NULL); if (status != PJ_SUCCESS) goto on_return; @@ -1482,7 +1482,7 @@ static void on_tsx_state_uac( pjsip_evsub *sub, pjsip_transaction *tsx, event->body.tsx_state.src.rdata, tsx->last_tx, &tdata); if (status == PJ_SUCCESS) - status = pjsip_dlg_send_request(sub->dlg, tdata, NULL); + status = pjsip_dlg_send_request(sub->dlg, tdata, -1, NULL); if (status != PJ_SUCCESS) { /* Authentication failed! */ @@ -1869,7 +1869,7 @@ static void on_tsx_state_uas( pjsip_evsub *sub, pjsip_transaction *tsx, status = pjsip_auth_clt_reinit_req( &sub->dlg->auth_sess, rdata, tsx->last_tx, &tdata); if (status == PJ_SUCCESS) - status = pjsip_dlg_send_request( sub->dlg, tdata, NULL ); + status = pjsip_dlg_send_request( sub->dlg, tdata, -1, NULL ); if (status != PJ_SUCCESS) { /* Can't authenticate. Terminate session (?) */ -- cgit v1.2.3