if (strcasecmp(acl_path, "anyof") == 0) {
int num_seen = 0, ret;
- while ((acl_path = ap_getword_conf(r->pool, &t)) != NULL) {
+ while ((acl_path = ap_getword_conf(r->pool, &t)) != NULL &&
+ strcmp(acl_path, "") != 0) {
ret = handle_require(r, conf, username, acl_path);
if (ret == OK) {
free(username);