diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-03-28 03:40:19 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-03-28 03:40:19 +0000 |
commit | fdb5e1107d5c3f149d7c24e1f434efd6ad57f7ee (patch) | |
tree | 08d2d3556b976ee15375214c0131b5092bc7ea30 /res/res_odbc.c | |
parent | 6626c31f35b8ebaf2d54caa688de451895185b30 (diff) |
Merged revisions 59289 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r59289 | tilghman | 2007-03-27 22:38:09 -0500 (Tue, 27 Mar 2007) | 2 lines
Another crash that I thought we had fixed already - Issue 9396
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@59290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_odbc.c')
-rw-r--r-- | res/res_odbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_odbc.c b/res/res_odbc.c index a5aefa7df..8aa989381 100644 --- a/res/res_odbc.c +++ b/res/res_odbc.c @@ -138,7 +138,7 @@ int ast_odbc_smart_execute(struct odbc_obj *obj, SQLHSTMT stmt) if ((res != SQL_SUCCESS) && (res != SQL_SUCCESS_WITH_INFO) && (res != SQL_NO_DATA)) { if (res == SQL_ERROR) { SQLGetDiagField(SQL_HANDLE_STMT, stmt, 1, SQL_DIAG_NUMBER, &numfields, SQL_IS_INTEGER, &diagbytes); - for (i=0; i< numfields + 1; i++) { + for (i = 0; i < numfields; i++) { SQLGetDiagRec(SQL_HANDLE_STMT, stmt, i + 1, state, &nativeerror, diagnostic, sizeof(diagnostic), &diagbytes); ast_log(LOG_WARNING, "SQL Execute returned an error %d: %s: %s (%d)\n", res, state, diagnostic, diagbytes); if (i > 10) { |