From de49b4b74ddcfa33f083bed9aaac7a78bda77fd1 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Tue, 8 Oct 2002 09:32:54 +0000 Subject: [PATCH] reformat some comments, make sure they fit in 80 cols --- src/acl.cc | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/acl.cc b/src/acl.cc index 1cb3ff4bd5..ac9cba6ff7 100644 --- a/src/acl.cc +++ b/src/acl.cc @@ -1,6 +1,6 @@ /* - * $Id: acl.cc,v 1.287 2002/10/02 11:06:31 robertc Exp $ + * $Id: acl.cc,v 1.288 2002/10/08 03:32:54 wessels Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -1249,7 +1249,8 @@ aclDumpUserMaxIP(void *data) return W; } -/* aclMatchUserMaxIP - check for users logging in from multiple IP's +/* + * aclMatchUserMaxIP - check for users logging in from multiple IP's * 0 : No match * 1 : Match */ @@ -1257,9 +1258,11 @@ int aclMatchUserMaxIP(void *data, auth_user_request_t * auth_user_request, struct in_addr src_addr) { -/* - * > the logic for flush the ip list when the limit is hit vs keep it sorted in most recent access order and just drop the oldest one off is currently undecided - */ + /* + * the logic for flush the ip list when the limit is hit vs keep + * it sorted in most recent access order and just drop the oldest + * one off is currently undecided + */ acl_user_ip_data *acldata = data; if (authenticateAuthUserRequestIPCount(auth_user_request) <= acldata->max) @@ -1267,14 +1270,16 @@ aclMatchUserMaxIP(void *data, auth_user_request_t * auth_user_request, /* this is a match */ if (acldata->flags.strict) { - /* simply deny access - the user name is already associated with + /* + * simply deny access - the user name is already associated with * the request */ /* remove _this_ ip, as it is the culprit for going over the limit */ authenticateAuthUserRequestRemoveIp(auth_user_request, src_addr); debug(28, 4) ("aclMatchUserMaxIP: Denying access in strict mode\n"); } else { - /* non-strict - remove some/all of the cached entries + /* + * non-strict - remove some/all of the cached entries * ie to allow the user to move machines easily */ authenticateAuthUserRequestClearIp(auth_user_request); @@ -1288,7 +1293,8 @@ static void aclLookupProxyAuthStart(aclCheck_t * checklist) { auth_user_request_t *auth_user_request; - assert(checklist->auth_user_request != NULL); /* this is created for us */ + /* make sure someone created auth_user_request for us */ + assert(checklist->auth_user_request != NULL); auth_user_request = checklist->auth_user_request; assert(authenticateValidateUser(auth_user_request)); -- 2.47.2