[svn-commits] tilghman: branch 1.2 r47525 - /branches/1.2/res/res_odbc.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sun Nov 12 22:45:11 MST 2006


Author: tilghman
Date: Sun Nov 12 23:45:11 2006
New Revision: 47525

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47525
Log:
If the execute fails a second time, make sure that we don't pass back a stale handle

Modified:
    branches/1.2/res/res_odbc.c

Modified: branches/1.2/res/res_odbc.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/res/res_odbc.c?view=diff&rev=47525&r1=47524&r2=47525
==============================================================================
--- branches/1.2/res/res_odbc.c (original)
+++ branches/1.2/res/res_odbc.c Sun Nov 12 23:45:11 2006
@@ -140,6 +140,7 @@
 
 				ast_log(LOG_WARNING, "SQL Execute error %d! Attempting a reconnect...\n", res);
 				SQLFreeHandle(SQL_HANDLE_STMT, stmt);
+				stmt = NULL;
 
 				ast_mutex_lock(&obj->lock);
 				obj->up = 0;



More information about the svn-commits mailing list