mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-19 10:41:50 +00:00
add some err checking to sqlite case for nonce checking
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14322 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -4016,11 +4016,16 @@ char *sofia_glue_execute_sql2str(sofia_profile_t *profile, switch_mutex_t *mutex
|
||||
|
||||
while (running < 5000) {
|
||||
int result = switch_core_db_step(stmt);
|
||||
const unsigned char *txt;
|
||||
|
||||
if (result == SWITCH_CORE_DB_ROW) {
|
||||
if ((colcount = switch_core_db_column_count(stmt))) {
|
||||
switch_copy_string(resbuf, (char *) switch_core_db_column_text(stmt, 0), len);
|
||||
ret = resbuf;
|
||||
if ((colcount = switch_core_db_column_count(stmt)) > 0) {
|
||||
if ((txt = switch_core_db_column_text(stmt, 0))) {
|
||||
switch_copy_string(resbuf, (char *) txt, len);
|
||||
ret = resbuf;
|
||||
} else {
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
break;
|
||||
} else if (result == SWITCH_CORE_DB_BUSY) {
|
||||
|
||||
Reference in New Issue
Block a user