From: nbk Date: Sun, 16 Jul 2006 10:43:13 +0000 (+0000) Subject: Update the comments to document the current nas_query. The previous X-Git-Tag: release_2_0_0_pre1~515 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=01dfc472f42c756f4b1ad80ae81649eacafbd465;p=freeradius.git Update the comments to document the current nas_query. The previous description was a little confusing. (closes: #374) --- diff --git a/src/modules/rlm_sql/rlm_sql.c b/src/modules/rlm_sql/rlm_sql.c index ce1326f..5c94967 100644 --- a/src/modules/rlm_sql/rlm_sql.c +++ b/src/modules/rlm_sql/rlm_sql.c @@ -258,14 +258,15 @@ static int generate_sql_clients(SQL_INST *inst) row = sqlsocket->row; if (row == NULL) break; -/* - * Format: - * Row1 Row2 Row3 Row4 Row5 Row6 Row7 Row8 - * - * id nasname shortname type ports secret community description - * - */ - + /* + * The return data for each row MUST be in the following order: + * + * 0. Row ID (currently unused) + * 1. Name (or IP address) + * 2. Shortname + * 3. Type + * 4. Secret + */ if (!row[0]){ radlog(L_ERR, "rlm_sql (%s): No row id found on pass %d",inst->config->xlat_name,i); continue;