From f72d75548718dee7e126fea1bb6c428b176c7d6d Mon Sep 17 00:00:00 2001 From: Dragos Oancea Date: Wed, 12 Feb 2020 00:41:17 +0000 Subject: [PATCH] [sofia-sip] scan-build: Value stored to 'invite_timeout' is never read - nua_invite_client_request() --- libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c b/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c index 21c3d65af1..d4deed535a 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c +++ b/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c @@ -774,7 +774,6 @@ static int nua_invite_client_request(nua_client_request_t *cr, nua_dialog_usage_t *du = cr->cr_usage; nua_session_usage_t *ss; int offer_sent = 0, retval; - sip_time_t invite_timeout; if (du == NULL) /* Call terminated */ 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) 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); /* Add session timer headers */