Limit the maximum number of queries over one SQL socket.
[freeradius.git] / src / modules / rlm_sql / rlm_sql.c
index bcfddf1..e6b44a5 100644 (file)
@@ -64,6 +64,8 @@ static const CONF_PARSER module_config[] = {
         offsetof(SQL_CONFIG,num_sql_socks), NULL, "5"},
        {"lifetime", PW_TYPE_INTEGER,
         offsetof(SQL_CONFIG,lifetime), NULL, "0"},
+       {"max_queries", PW_TYPE_INTEGER,
+        offsetof(SQL_CONFIG,max_queries), NULL, "0"},
        {"sql_user_name", PW_TYPE_STRING_PTR,
         offsetof(SQL_CONFIG,query_user), NULL, ""},
        {"default_user_profile", PW_TYPE_STRING_PTR,