--------------------- PatchSet 2721 Date: 2001/08/06 08:47:19 Author: rbcollins Branch: ntlm Tag: (none) Log: SetIpFix Members: src/authenticate.c:1.1.1.3.12.47->1.1.1.3.12.48 Index: squid/src/authenticate.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/authenticate.c,v retrieving revision 1.1.1.3.12.47 retrieving revision 1.1.1.3.12.48 diff -u -r1.1.1.3.12.47 -r1.1.1.3.12.48 --- squid/src/authenticate.c 3 Aug 2001 08:28:09 -0000 1.1.1.3.12.47 +++ squid/src/authenticate.c 6 Aug 2001 08:47:19 -0000 1.1.1.3.12.48 @@ -1,6 +1,6 @@ /* - * $Id: authenticate.c,v 1.1.1.3.12.47 2001/08/03 08:28:09 rbcollins Exp $ + * $Id: authenticate.c,v 1.1.1.3.12.48 2001/08/06 08:47:19 rbcollins Exp $ * * DEBUG: section 29 Authenticator * AUTHOR: Duane Wessels @@ -247,6 +247,7 @@ auth_user_ip_t *ipdata, *tempnode; auth_user_t *auth_user; char *ip1; + int found = 0; CBDATA_INIT_TYPE (auth_user_ip_t); if (!auth_user_request->auth_user) return; @@ -260,6 +261,7 @@ /* walk the ip list */ if (ipdata->ipaddr.s_addr == ipaddr.s_addr) { /* This ip has alreadu been seen. */ + found = 1; /* update IP ttl */ ipdata->ip_expiretime = squid_curtime; } else if (ipdata->ip_expiretime + Config.authenticateIpTTL < squid_curtime) { @@ -272,6 +274,9 @@ } ipdata = tempnode; } + + if (!found) + return; /* This ip is not in the seen list */ ipdata = cbdataAlloc (auth_user_ip_t);