]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix init issue
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 23 Dec 2008 19:47:50 +0000 (19:47 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 23 Dec 2008 19:47:50 +0000 (19:47 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10925 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c
src/switch_xml.c

index 52bd376962c6d1b86fe1952ab4f4cfe02c9b0525..aba046a5ab470bb6c1fe442dfc90945ba2b8e12c 100644 (file)
@@ -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;
index 0a1c5c77610d9ace909f355308ee9f1abc0b538b..07bf355033f9df2c6b981b105d5ffec6e654bb36 100644 (file)
@@ -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);