[sofia-sip] scan-build: Value stored to 'invite_timeout' is never read - nua_invite_client_request()
This commit is contained in:
parent
1b66e76548
commit
f72d755487
|
@ -774,7 +774,6 @@ static int nua_invite_client_request(nua_client_request_t *cr,
|
||||||
nua_dialog_usage_t *du = cr->cr_usage;
|
nua_dialog_usage_t *du = cr->cr_usage;
|
||||||
nua_session_usage_t *ss;
|
nua_session_usage_t *ss;
|
||||||
int offer_sent = 0, retval;
|
int offer_sent = 0, retval;
|
||||||
sip_time_t invite_timeout;
|
|
||||||
|
|
||||||
if (du == NULL) /* Call terminated */
|
if (du == NULL) /* Call terminated */
|
||||||
return nua_client_return(cr, SIP_481_NO_TRANSACTION, msg);
|
return nua_client_return(cr, SIP_481_NO_TRANSACTION, msg);
|
||||||
|
@ -784,11 +783,6 @@ static int nua_invite_client_request(nua_client_request_t *cr,
|
||||||
if (ss->ss_state >= nua_callstate_terminating)
|
if (ss->ss_state >= nua_callstate_terminating)
|
||||||
return nua_client_return(cr, 900, "Session is terminating", msg);
|
return nua_client_return(cr, 900, "Session is terminating", msg);
|
||||||
|
|
||||||
invite_timeout = NH_PGET(nh, invite_timeout);
|
|
||||||
if (invite_timeout == 0)
|
|
||||||
invite_timeout = UINT_MAX;
|
|
||||||
/* Send CANCEL if we don't get response within timeout*/
|
|
||||||
/* nua_dialog_usage_set_expires(du, invite_timeout); Xyzzy */
|
|
||||||
nua_dialog_usage_reset_refresh(du);
|
nua_dialog_usage_reset_refresh(du);
|
||||||
|
|
||||||
/* Add session timer headers */
|
/* Add session timer headers */
|
||||||
|
|
Loading…
Reference in New Issue