]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorMathieu Rene <mrene@avgs.ca>
Mon, 16 Mar 2009 22:44:27 +0000 (22:44 +0000)
committerMathieu Rene <mrene@avgs.ca>
Mon, 16 Mar 2009 22:44:27 +0000 (22:44 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12633 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index 5de6d7dab6c303a1bec25de55b151c6c91974aab..b365573da93eb76d977b94c9509da6cbf2651224 100644 (file)
@@ -3332,14 +3332,13 @@ int sofia_glue_init_sql(sofia_profile_t *profile)
 void sofia_glue_sql_close(sofia_profile_t *profile)
 {
 #ifdef SWITCH_HAVE_ODBC
-       if (profile->odbc_dsn) {
+       if (profile->master_odbc) {
                switch_odbc_handle_destroy(&profile->master_odbc);
-               return;
        }
-#endif
-
+#else
        switch_core_db_close(profile->master_db);
        profile->master_db = NULL;
+#endif
 }