Module: sip-router Branch: master Commit: 941c48ae6909994ae090c9d52766cd4dd5d4f938 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=941c48ae...
Author: Ovidiu Sas osas@voipembedded.com Committer: Ovidiu Sas osas@voipembedded.com Date: Wed Mar 20 13:00:27 2013 -0400
auth_diameter: remove unused but set variable
---
modules/auth_diameter/auth_diameter.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/modules/auth_diameter/auth_diameter.c b/modules/auth_diameter/auth_diameter.c index 5dc73ff..e17e067 100644 --- a/modules/auth_diameter/auth_diameter.c +++ b/modules/auth_diameter/auth_diameter.c @@ -212,13 +212,10 @@ int diameter_www_authorize(struct sip_msg* _msg, char* _realm, char* _s2)
static int group_fixup(void** param, int param_no) { - void* ptr; str* s;
if (param_no == 1) { - ptr = *param; - if (!strcasecmp((char*)*param, "Request-URI")) { *param = (void*)1; @@ -245,8 +242,6 @@ static int group_fixup(void** param, int param_no) LM_ERR("unsupported Header Field identifier\n"); return E_UNSPEC; - - //pkg_free(ptr); } if (param_no == 2) @@ -257,14 +252,12 @@ static int group_fixup(void** param, int param_no) LM_ERR("no pkg memory left\n"); return E_UNSPEC; } - ptr = *param; s->s = (char*)*param; s->len = strlen(s->s); *param = (void*)s; }
end: -// pkg_free(ptr); return 0; }