提交 e0b34881 authored 作者: Mathieu Parent's avatar Mathieu Parent

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)
上级 e5ab5818
......@@ -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");
}
......
......@@ -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 */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论