Module: sip-router
Branch: 4.0
Commit: 3a18564eb905d93b85b9e0527fa40cd85eb2e3b7
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3a18564eb905d93b85b9e0527fa40cd85eb2e3b7

Author: Ovidiu Sas <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date:   Wed Mar 20 13:02:16 2013 -0400

auth_diameter: remove unused but set variable
(cherry picked from commit 387adace552c22eaf15a049b23694bcd79cea3a8)

---

 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 */


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to