[Freeswitch-svn] [commit] r5666 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
anthm at freeswitch.org
Mon Aug 27 16:43:35 EDT 2007
Author: anthm
Date: Mon Aug 27 16:43:34 2007
New Revision: 5666
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
Log:
fix reg var scope
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c Mon Aug 27 16:43:34 2007
@@ -730,7 +730,8 @@
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 @@
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);
More information about the Freeswitch-svn
mailing list