Module: sip-router
Branch: master
Commit: 387adace552c22eaf15a049b23694bcd79cea3a8
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=387adac…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Wed Mar 20 13:02:16 2013 -0400
auth_diameter: remove unused but set variable
---
modules/auth_diameter/authorize.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/modules/auth_diameter/authorize.c b/modules/auth_diameter/authorize.c
index 7b4f67c..6660057 100644
--- a/modules/auth_diameter/authorize.c
+++ b/modules/auth_diameter/authorize.c
@@ -295,7 +295,7 @@ int authorize(struct sip_msg* msg, pv_elem_t* realm, int hftype)
int diameter_authorize(struct hdr_field* hdr, str* p_method, struct sip_uri uri,
struct sip_uri ruri, unsigned int m_id, rd_buf_t* rb)
{
- str method, user_name;
+ str user_name;
AAAMessage *req;
AAA_AVP *avp, *position;
int name_flag, port_flag;
@@ -316,8 +316,6 @@ int diameter_authorize(struct hdr_field* hdr, str* p_method, struct
sip_uri uri,
else
cred = NULL;
- method = *p_method;
-
if(!cred)
{
/* Username AVP */