[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gnu-radius] ODBC in 0.96.4
From: |
Sergey Poznyakoff |
Subject: |
Re: [Help-gnu-radius] ODBC in 0.96.4 |
Date: |
Thu, 30 Jan 2003 17:06:31 +0200 |
Hmm, it was a *very* nasty bug. Thank you for reporting it.
Enclosed is a patch, please let me know if it works for you.
Regards,
Sergey
Index: sql/odbc.c
===================================================================
RCS file: /cvsroot/radius/radius/sql/odbc.c,v
retrieving revision 1.2
diff -p -u -w -b -r1.2 odbc.c
--- odbc.c 28 Dec 2001 14:47:21 -0000 1.2
+++ odbc.c 30 Jan 2003 15:04:20 -0000
@@ -343,7 +343,7 @@ rad_odbc_column(data, ncol)
return NULL;
}
- SQLGetData(edata->stmt,ncol+1,SQL_C_CHAR,
+ result = SQLGetData(edata->stmt,ncol+1,SQL_C_CHAR,
buffer, sizeof buffer, &size);
if (result != SQL_SUCCESS) {
rad_odbc_diag(SQL_HANDLE_STMT, edata->stmt,