Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0.7
-
Fix Version/s: None
-
Component/s: freeswitch-core
-
Labels:None
-
Environment:windows + freeswitch 1.07 + odbc + sql server 2008
-
Platform:Win32/VS
-
CPU Info:Pentium Dual-core CPU E5300
-
FreeSWITCH GIT Revision:latest
-
Reproduced with GIT HEAD?:no
-
Target Version:
Description
I use odbc to write cdr to sql server 2008. when sql server killed freeswitch's tcp connection , freeswitch will atuomatically check if db is up as soon as you execute sql statements. In freeswitch 1.07 ,a new line added to switch_odbc.c in Line 163 :
if (stmt) {
SQLFreeHandle(SQL_HANDLE_STMT, stmt);
stmt = NULL;
}
this will cause freeswitch to crash .
I moved this lines to line 202, no problem found .
Is it a bug?
if (stmt) {
SQLFreeHandle(SQL_HANDLE_STMT, stmt);
stmt = NULL;
}
this will cause freeswitch to crash .
I moved this lines to line 202, no problem found .
Is it a bug?
Author: Anthony Minessale <anthm@freeswitch.org>
Date: Wed Dec 8 20:38:16 2010 -0600
can you try this?