]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
declinatio mortuus obfirmo
authorAnthony Minessale <anthony.minessale@gmail.com>
Sat, 14 Nov 2009 21:00:51 +0000 (21:00 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sat, 14 Nov 2009 21:00:51 +0000 (21:00 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15472 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index a27c4117cdc528baeb8a1dc0eb12f93318b4c94d..b20a5d472baa4ee4980dc5a4dd2a1fb7f9331fc1 100644 (file)
@@ -4240,10 +4240,9 @@ char *sofia_glue_execute_sql2str(sofia_profile_t *profile, switch_mutex_t *mutex
 
        if (switch_odbc_available() && dbh->odbc_dbh) {
                if (switch_odbc_handle_exec_string(dbh->odbc_dbh, sql, resbuf, len) == SWITCH_ODBC_SUCCESS) {
-                       return resbuf;
-               } else {
-                       goto end;
+                       ret = resbuf;
                }
+               goto end;               
        }
 
        if (switch_core_db_prepare(dbh->db, sql, -1, &stmt, 0)) {