From 075e80c368e37e68619485c47b2a8bd12c13c12c Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 27 Aug 2007 20:43:34 +0000 Subject: [PATCH] fix reg var scope git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5666 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_reg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index 8ce1f3ec2c..996ad0fa00 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -730,7 +730,8 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, sip_authorization_t co const char *a1_hash = NULL; char *sql; switch_xml_t domain, xml, user, param, xparams; - + char hexdigest[2 * SU_MD5_DIGEST_SIZE + 1] = ""; + username = realm = nonce = uri = qop = cnonce = nc = response = NULL; if (authorization->au_params) { @@ -847,7 +848,6 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, sip_authorization_t co if (!a1_hash) { su_md5_t ctx; - char hexdigest[2 * SU_MD5_DIGEST_SIZE + 1]; char *input; input = switch_mprintf("%s:%s:%s", username, realm, passwd);