packages/net/freeradius2/patches/009-sql_sqlite_c.patch
florian b1f39d5134 [package] freeradius2: add rlm_sql_sqlite and rlm_passwd
This patch adds rlm_sql_sqlite, rlm_passwd modules for freeradius2.
It patches the rlm_sql_sqlite in order to work (authorization is working, accounting not yet tested).
It adds radwho to the utils.

Thanks in advance.

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@26342 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-28 21:22:34 +00:00

15 lines
443 B
Diff

--- a/src/modules/rlm_sql/drivers/rlm_sql_sqlite/sql_sqlite.c
+++ b/src/modules/rlm_sql/drivers/rlm_sql_sqlite/sql_sqlite.c
@@ -138,10 +138,7 @@ static int sql_query(SQLSOCK * sqlsocket
static int sql_select_query(SQLSOCK *sqlsocket, SQL_CONFIG *config,
char *querystr)
{
- if (strstr(querystr, "nas") != NULL)
- return sql_query(sqlsocket, config, querystr);
-
- return 0;
+ return sql_query(sqlsocket, config, querystr);
}