[OpenSIPS-Users] Fix for the freeradius patch (within cdrtool) for version 1.1.7

Joan aseques at gmail.com
Fri Jan 23 12:34:39 CET 2009


When following the details on how to compile freeradius with to
support cdrtool from CDRTool/setup/radius/FreeRadius/readme.txt

The patch there applies cleanly, there's only a issue when applying
the patch I attached to the mail, because it is already fixed in 1.1.7
version. Other than that, the patch applies cleanly.

--- freeradius.orig/src/modules/rlm_sql/drivers/rlm_sql_mysql/sql_mysql.c
      2005-12-09 17:10:08.000000000 +0100
+++ freeradius.new/src/modules/rlm_sql/drivers/rlm_sql_mysql/sql_mysql.c
       2006-12-12 23:59:11.000000000 +0100
@@ -82,7 +82,7 @@
                                                    config->sql_db,
                                                    atoi(config->sql_port),
                                                    NULL,
-                                                   CLIENT_FOUND_ROWS))) {
+
CLIENT_FOUND_ROWS|CLIENT_MULTI_RESULTS))) {
                radlog(L_ERR, "rlm_sql_mysql: Couldn't connect socket
to MySQL server %s@%s:%s", config->sql_login, config->sql_server,
config->sql_db);
                radlog(L_ERR, "rlm_sql_mysql: Mysql error '%s'",
mysql_error(&mysql_sock->conn));
                mysql_sock->sock = NULL;



More information about the Users mailing list