From 763ee49e5826195373fe87b52195d7affc7e7699 Mon Sep 17 00:00:00 2001 From: tilghman Date: Mon, 13 Nov 2006 05:46:18 +0000 Subject: Merged revisions 47525 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r47525 | tilghman | 2006-11-12 23:45:11 -0600 (Sun, 12 Nov 2006) | 2 lines If the execute fails a second time, make sure that we don't pass back a stale handle ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47526 f38db490-d61c-443f-a65b-d21fe96a405b --- res/res_odbc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'res/res_odbc.c') diff --git a/res/res_odbc.c b/res/res_odbc.c index 036b02151..e87190090 100644 --- a/res/res_odbc.c +++ b/res/res_odbc.c @@ -108,6 +108,7 @@ SQLHSTMT ast_odbc_prepare_and_execute(struct odbc_obj *obj, SQLHSTMT (*prepare_c ast_log(LOG_WARNING, "SQL Execute error %d! Attempting a reconnect...\n", res); SQLFreeHandle(SQL_HANDLE_STMT, stmt); + stmt = NULL; obj->up = 0; /* -- cgit v1.2.3