]> 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)
committerKen Rice <krice@freeswitch.org>
Mon, 12 Oct 2015 16:58:53 +0000 (11:58 -0500)
src/mod/applications/mod_easyroute/mod_easyroute.c

index e039c86e3883c2379d8f16cbdd7583721e38af40..db5852ea91f2c55044986cc75647e183e35f59db 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: