Browse Source

auth_diameter: remove unused but set variable

Ovidiu Sas 12 years ago
parent
commit
387adace55
1 changed files with 1 additions and 3 deletions
  1. 1 3
      modules/auth_diameter/authorize.c

+ 1 - 3
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 */