* Purpose: Issue a query to the database
*
*************************************************************************/
-static int sql_query(SQLSOCK * sqlsocket, SQL_CONFIG *config, char *querystr)
+static int sql_query(SQLSOCK * sqlsocket, UNUSED SQL_CONFIG *config,
+ char *querystr)
{
rlm_sql_mysql_sock *mysql_sock = sqlsocket->conn;
if (section->reference[0] != '.')
*p++ = '.';
- if (radius_xlat(p, (sizeof(path) - (p - path)) - 1,
- section->reference, request, NULL, NULL) < 0)
+ if (!radius_xlat(p, (sizeof(path) - (p - path)) - 1,
+ section->reference, request, NULL, NULL))
return RLM_MODULE_FAIL;
item = cf_reference_item(NULL, section->cs, path);