From 8f45b34c8085bec9d318d155fbe7578968c91ee1 Mon Sep 17 00:00:00 2001 From: hno <> Date: Thu, 27 Jun 2002 02:57:09 +0000 Subject: [PATCH] One more hardcoded ident reference from external_acl, discovered by Vladimir B. Savkin --- src/external_acl.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/external_acl.cc b/src/external_acl.cc index 0af6063132..152cb9f477 100644 --- a/src/external_acl.cc +++ b/src/external_acl.cc @@ -1,6 +1,6 @@ /* - * $Id: external_acl.cc,v 1.3 2002/06/25 11:58:15 hno Exp $ + * $Id: external_acl.cc,v 1.4 2002/06/26 20:57:09 hno Exp $ * * DEBUG: section 82 External ACL * AUTHOR: Henrik Nordstrom, MARA Systems AB @@ -239,7 +239,7 @@ parse_externalAclHelper(external_acl ** list) a->require_auth = 1; } #if USE_IDENT - else if (strcmp(token, "%IDENT") == 0) + else if (strcmp(token, "%IDENT") == 0) format->type = EXT_ACL_IDENT; #endif else if (strcmp(token, "%SRC") == 0) @@ -307,7 +307,9 @@ dump_externalAclHelper(StoreEntry * sentry, const char *name, const external_acl storeAppendPrintf(sentry, " %%%s", #a); \ break DUMP_EXT_ACL_TYPE(LOGIN); +#if USE_IDENT DUMP_EXT_ACL_TYPE(IDENT); +#endif DUMP_EXT_ACL_TYPE(SRC); DUMP_EXT_ACL_TYPE(DST); DUMP_EXT_ACL_TYPE(PROTO); @@ -696,8 +698,8 @@ strwordtok(char *buf, char **t) done: *d++ = '\0'; error: - *t = (char *)p; - return (char *)word; + *t = (char *) p; + return (char *) word; } /* -- 2.47.3