/*
- * $Id: acl.cc,v 1.298 2003/02/08 01:45:47 robertc Exp $
+ * $Id: acl.cc,v 1.299 2003/02/08 15:54:36 hno Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
debug(28, 3) ("aclMatchTime: checking %d in %d-%d, weekbits=%x\n",
(int) t, (int) data->start, (int) data->stop, data->weekbits);
- if (t < data->start || t > data->stop)
- return 0;
- return data->weekbits & (1 << tm.tm_wday) ? 1 : 0;
+ while (data) {
+ if (t >= data->start && t <= data->stop && (data->weekbits & (1 << tm.tm_wday)))
+ return 1;
+ data = data->next;
+ }
+ return 0;
}
#if SQUID_SNMP