]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4641 apply same fix to mod_xml_cdr
authorJeff Lenk <jeff@jefflenk.com>
Mon, 24 Sep 2012 21:58:31 +0000 (16:58 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Mon, 24 Sep 2012 21:58:31 +0000 (16:58 -0500)
src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c

index 28f4ae2e44ca13cf1c69b3a4b9439ff8136ee746..8779caa6f3c24d989cb4ec3c466cd8d124b78f12 100644 (file)
@@ -548,15 +548,15 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_xml_cdr_load)
                        } else if (!strcasecmp(var, "enable-cacert-check") && switch_true(val)) {
                                globals.enable_cacert_check = 1;
                        } else if (!strcasecmp(var, "ssl-cert-path")) {
-                               globals.ssl_cert_file = val;
+                               globals.ssl_cert_file = switch_core_strdup(globals.pool, val);
                        } else if (!strcasecmp(var, "ssl-key-path")) {
-                               globals.ssl_key_file = val;
+                               globals.ssl_key_file = switch_core_strdup(globals.pool, val);
                        } else if (!strcasecmp(var, "ssl-key-password")) {
-                               globals.ssl_key_password = val;
+                               globals.ssl_key_password = switch_core_strdup(globals.pool, val);
                        } else if (!strcasecmp(var, "ssl-version")) {
-                               globals.ssl_version = val;
+                               globals.ssl_version = switch_core_strdup(globals.pool, val);
                        } else if (!strcasecmp(var, "ssl-cacert-file")) {
-                               globals.ssl_cacert_file = val;
+                               globals.ssl_cacert_file = switch_core_strdup(globals.pool, val);
                        } else if (!strcasecmp(var, "enable-ssl-verifyhost") && switch_true(val)) {
                                globals.enable_ssl_verifyhost = 1;
                        } else if (!strcasecmp(var, "auth-scheme")) {