From 772f957064cbeafc21593f23b4a15fd15c5bdac8 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 23 Dec 2008 19:47:50 +0000 Subject: [PATCH] fix init issue git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10925 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_reg.c | 2 +- src/switch_xml.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index 52bd376962..aba046a5ab 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -1394,7 +1394,7 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, sip_authorization_t co const char *a1_hash = NULL; char *sql; char *mailbox = NULL; - switch_xml_t domain, xml = NULL, user, param, uparams, dparams, group, gparams = NULL; + switch_xml_t domain, xml = NULL, user, param, uparams, dparams, group = NULL, gparams = NULL; char hexdigest[2 * SU_MD5_DIGEST_SIZE + 1] = ""; char *domain_name = NULL; switch_event_t *params = NULL; diff --git a/src/switch_xml.c b/src/switch_xml.c index 0a1c5c7761..07bf355033 100644 --- a/src/switch_xml.c +++ b/src/switch_xml.c @@ -1689,6 +1689,10 @@ SWITCH_DECLARE(switch_status_t) switch_xml_locate_user(const char *key, *user = NULL; *domain = NULL; + if (ingroup) { + *ingroup = NULL; + } + if (!params) { switch_event_create(&my_params, SWITCH_EVENT_REQUEST_PARAMS); switch_assert(my_params);