]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5585 --resolve
authorJeff Lenk <jeff@jefflenk.com>
Tue, 24 Dec 2013 17:37:09 +0000 (11:37 -0600)
committerJeff Lenk <jeff@jefflenk.com>
Tue, 24 Dec 2013 17:37:09 +0000 (11:37 -0600)
src/switch_core_sqldb.c

index c53fc75a403ed6c034c044eb098bd25127d318f0..05d27c6cafee9bb84d3f15fee7f3c58649ca548c 100644 (file)
@@ -347,7 +347,7 @@ SWITCH_DECLARE(switch_status_t) _switch_cache_db_get_db_handle_dsn(switch_cache_
        } else if (!strncasecmp(dsn, "sqlite://", 9)) {
                type = SCDB_TYPE_CORE_DB;
                connection_options.core_db_options.db_path = (char *)(dsn + 9);
-       } else if ((!(i = strncasecmp(dsn, "odbc://", 7))) || strchr(dsn, ':')) {
+       } else if ((!(i = strncasecmp(dsn, "odbc://", 7))) || strchr(dsn+2, ':')) {
                type = SCDB_TYPE_ODBC;
 
                if (i) {