packages/net/freeradius2/patches/009-sql_sqlite_c.patch

15 lines
443 B
Diff
Raw Normal View History

--- 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);
}