[Freeswitch-svn] [commit] r5671 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
anthm at freeswitch.org
Tue Aug 28 13:08:32 EDT 2007
Author: anthm
Date: Tue Aug 28 13:08:32 2007
New Revision: 5671
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
Log:
fix stupidity
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 Tue Aug 28 13:08:32 2007
@@ -729,7 +729,7 @@
const char *passwd = NULL;
const char *a1_hash = NULL;
char *sql;
- switch_xml_t domain, xml, user, param, xparams;
+ switch_xml_t domain, xml = NULL, user, param, xparams;
char hexdigest[2 * SU_MD5_DIGEST_SIZE + 1] = "";
username = realm = nonce = uri = qop = cnonce = nc = response = NULL;
@@ -806,7 +806,6 @@
if (!(xparams = switch_xml_child(user, "params"))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "can't find params for user [%s@%s]\n", username, realm);
- switch_xml_free(xml);
ret = AUTH_FORBIDDEN;
goto end;
}
@@ -892,7 +891,9 @@
}
end:
- switch_xml_free(xml);
+ if (xml) {
+ switch_xml_free(xml);
+ }
switch_safe_free(input);
switch_safe_free(input2);
switch_safe_free(username);
More information about the Freeswitch-svn
mailing list