From fe9ef96e9a990bae117e3faa3cb182a23f603e39 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 15 May 2013 21:46:21 +0200 Subject: [PATCH] Fix an infinite loop in the Apache module. --- libapache2-mod-authz-itkacl-0.5/mod_authz_itkacl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libapache2-mod-authz-itkacl-0.5/mod_authz_itkacl.c b/libapache2-mod-authz-itkacl-0.5/mod_authz_itkacl.c index d892e78..e554915 100644 --- a/libapache2-mod-authz-itkacl-0.5/mod_authz_itkacl.c +++ b/libapache2-mod-authz-itkacl-0.5/mod_authz_itkacl.c @@ -116,7 +116,8 @@ static int authz_itkacl_authorize_user(request_rec *r) 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); -- 2.39.2