diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-04-04 11:06:34 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-04-04 11:06:34 +0000 |
commit | 9da5ebeca867322da5ed41e4e9fb3218caf5ab41 (patch) | |
tree | fb43d750f33df9df7d6fb63e568d6a3522d312c1 /pjsip/src/pjsip-simple/evsub.c | |
parent | e7a65ea2ca8a296a5134dc61b339597763e1dffd (diff) |
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
Diffstat (limited to 'pjsip/src/pjsip-simple/evsub.c')
-rw-r--r-- | pjsip/src/pjsip-simple/evsub.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 (?) */ |