From 01dfc472f42c756f4b1ad80ae81649eacafbd465 Mon Sep 17 00:00:00 2001 From: nbk Date: Sun, 16 Jul 2006 10:43:13 +0000 Subject: [PATCH] Update the comments to document the current nas_query. The previous description was a little confusing. (closes: #374) --- src/modules/rlm_sql/rlm_sql.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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; -- 2.1.4