]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8335 #resolve fix small error check that results in error message not being displayed.
authorKen Rice <krice@freeswitch.org>
Mon, 12 Oct 2015 16:56:20 +0000 (11:56 -0500)
committerMichael Jerris <mike@jerris.com>
Fri, 23 Oct 2015 15:21:55 +0000 (11:21 -0400)
src/mod/applications/mod_easyroute/mod_easyroute.c

index 5fdbf3abb20df53827f209a321c822a8ecb3c3a0..186cf1851d82195f098988ecbb877e4a25c29ddc 100644 (file)
@@ -165,8 +165,8 @@ static switch_status_t load_config(void)
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Cannot find  SQL Database! (Where\'s the gateways table\?\?)\n");
                        }
                }
-       } else if (globals.db_dsn) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Cannot Open ODBC Connection (did you enable it?!)\n");
+       } else if (!globals.db_dsn) {
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Cannot Open ODBC Connection (did you enable it?)\n");
        }
 
   reallydone: