]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix reg var scope
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 27 Aug 2007 20:43:34 +0000 (20:43 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 27 Aug 2007 20:43:34 +0000 (20:43 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5666 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c

index 8ce1f3ec2c451f4e72b56a74c574496c5cc360a5..996ad0fa0077a613b3b3e7ed6ad98537e1190a09 100644 (file)
@@ -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);