]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix sqlhwippool 68/head
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 17 Jul 2012 20:24:29 +0000 (21:24 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 17 Jul 2012 20:24:29 +0000 (21:24 +0100)
src/modules/rlm_sqlhpwippool/rlm_sqlhpwippool.c

index 50f04da5aec6f53494c045f89567b1e4a7692c07..92976c8d6e1be8efbd4127594d95d9d6c7f706b2 100644 (file)
@@ -110,7 +110,7 @@ static int nvp_vquery(unsigned int line, rlm_sqlhpwippool_t *data,
 
        vsnprintf(query, MAX_QUERY_LEN, fmt, ap);
 
-       if (rlm_sql_query(sqlsock, data->sqlinst, query)) {
+       if (rlm_sql_query(&sqlsock, data->sqlinst, query)) {
                nvp_log(__LINE__, data, L_ERR, "nvp_vquery(): query from line %u: %s",
                        line, (char *)(data->db->sql_error)(sqlsock, data->sqlinst->config));
                return 0;