浏览代码

auth_diameter: remove unused but set variable

Ovidiu Sas 12 年之前
父节点
当前提交
387adace55
共有 1 个文件被更改,包括 1 次插入3 次删除
  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 */