From e0b34881af3e4021e2fcdc5430d39cba3d9f0f8c Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Tue, 26 Mar 2013 22:29:40 +0100 Subject: [PATCH] mod_skinny parses and modifies odbc url, breaking it, but also doesn't use the resulting vars Closes: FS-5224 (Thanks to Nathan Neulinger for the patch) --- src/mod/endpoints/mod_skinny/mod_skinny.c | 6 ------ src/mod/endpoints/mod_skinny/mod_skinny.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.c b/src/mod/endpoints/mod_skinny/mod_skinny.c index 7026a29c80..d20ad58352 100644 --- a/src/mod/endpoints/mod_skinny/mod_skinny.c +++ b/src/mod/endpoints/mod_skinny/mod_skinny.c @@ -1715,12 +1715,6 @@ switch_status_t skinny_profile_set(skinny_profile_t *profile, const char *var, c if (!zstr(val)) { if (switch_odbc_available()) { profile->odbc_dsn = switch_core_strdup(profile->pool, val); - if ((profile->odbc_user = strchr(profile->odbc_dsn, ':'))) { - *profile->odbc_user++ = '\0'; - if ((profile->odbc_pass = strchr(profile->odbc_user, ':'))) { - *profile->odbc_pass++ = '\0'; - } - } } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ODBC IS NOT AVAILABLE!\n"); } diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.h b/src/mod/endpoints/mod_skinny/mod_skinny.h index 03e0ec0b62..d712e044a5 100644 --- a/src/mod/endpoints/mod_skinny/mod_skinny.h +++ b/src/mod/endpoints/mod_skinny/mod_skinny.h @@ -90,8 +90,6 @@ struct skinny_profile { /* db */ char *dbname; char *odbc_dsn; - char *odbc_user; - char *odbc_pass; switch_odbc_handle_t *master_odbc; switch_mutex_t *sql_mutex; /* stats */