]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4641 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 24 Sep 2012 17:28:11 +0000 (12:28 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 24 Sep 2012 17:28:18 +0000 (12:28 -0500)
src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c

index 7b1cf2a6a90ad71cf76c8640874b98e812f042ef..a50616f70841bed8001da12f2d7cc7bec4165b94 100644 (file)
@@ -560,15 +560,15 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_json_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")) {