]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
avoid a segfault if you dont have an xml_cdr config
authorKen Rice <krice@freeswitch.org>
Fri, 6 Sep 2013 00:02:27 +0000 (19:02 -0500)
committerKen Rice <krice@freeswitch.org>
Fri, 6 Sep 2013 00:05:16 +0000 (19:05 -0500)
src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c

index 90724d42d608ded0fa30d75d522ccd8b06d34d30..d992dfd103c32a4e49a801f24fa22335ec682d77 100644 (file)
@@ -481,7 +481,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_xml_cdr_load)
        /* parse the config */
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
-               return SWITCH_STATUS_TERM;
+               return SWITCH_STATUS_FALSE;
        }
 
        if ((settings = switch_xml_child(cfg, "settings"))) {