--------------------- PatchSet 1219 Date: 2001/01/09 13:55:50 Author: rbcollins Branch: auth_rewrite Tag: (none) Log: configure order bugfix Members: src/authenticate.c:1.1.1.3.12.17.2.28->1.1.1.3.12.17.2.29 Index: squid/src/authenticate.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/authenticate.c,v retrieving revision 1.1.1.3.12.17.2.28 retrieving revision 1.1.1.3.12.17.2.29 diff -u -r1.1.1.3.12.17.2.28 -r1.1.1.3.12.17.2.29 --- squid/src/authenticate.c 8 Jan 2001 19:39:39 -0000 1.1.1.3.12.17.2.28 +++ squid/src/authenticate.c 9 Jan 2001 13:55:50 -0000 1.1.1.3.12.17.2.29 @@ -1,6 +1,6 @@ /* - * $Id: authenticate.c,v 1.1.1.3.12.17.2.28 2001/01/08 19:39:39 hno Exp $ + * $Id: authenticate.c,v 1.1.1.3.12.17.2.29 2001/01/09 13:55:50 rbcollins Exp $ * * DEBUG: section 29 Authenticator * AUTHOR: Duane Wessels @@ -266,9 +266,6 @@ if (!proxy_auth_hash) { /* not in the hash table */ debug(29, 4) ("authenticateGetAuthUser: proxy-auth cache miss. Decoding header details.\n"); -#if GLOBALPROXYHEADERCACHE - auth_user = memAllocate(MEM_AUTH_USER_T); -#endif auth_user_request = authenticateAuthUserRequestNew(); authenticateDecodeAuth(proxy_auth, auth_user_request); } else { @@ -380,10 +377,9 @@ int i; authScheme *scheme; for (i = 0; i < config->n_configured; i++) { - if (authscheme_list[i].init) { - scheme = config->schemes + i; - authscheme_list[i].init(scheme); - } + scheme = config->schemes + i; + if (authscheme_list[scheme->Id].init) { + authscheme_list[scheme->Id].init(scheme); } } if (!proxy_auth_username_cache) authenticateInitUserCache();