a patch about rlm_sql

zhongwei feng fengzhw at gmail.com
Tue Mar 9 08:01:00 CET 2010


hi, all:

When radiusd is running, shutdown the oracle server, then occur "segment fail".

[root at RADSERVER1 rlm_sql]# diff -u sql.c.orig sql.c
--- sql.c.orig  2010-03-09 14:49:01.000000000 +0800
+++ sql.c       2010-03-09 14:49:48.000000000 +0800
@@ -507,7 +507,7 @@
        /*
         *      If there's no query, return an error.
         */
-       if (!query || !*query) {
+       if (!query || !*query || !sqlsocket || !sqlsocket->conn) {
                return -1;
        }
 
@@ -552,7 +552,7 @@
        /*
         *      If there's no query, return an error.
         */
-       if (!query || !*query) {
+       if (!query || !*query || !sqlsocket || !sqlsocket->conn) {
                return -1;
        }
 




More information about the Freeradius-Devel mailing list