]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
bug here in that the hook ptr fu is busted so we need
authorJoe Schaefer <joes@apache.org>
Sun, 29 Apr 2012 01:53:50 +0000 (01:53 +0000)
committerJoe Schaefer <joes@apache.org>
Sun, 29 Apr 2012 01:53:50 +0000 (01:53 +0000)
to ensure only the first matching param sets ctx->param

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331862 13f79535-47bb-0310-9956-ffa450edef68

server/apreq_parser.c

index 69c0c4f035af9d603105b3d23e3f433fc23b2c96..2949994a1eb5c92217c64f6098a4fa9324f22512 100644 (file)
@@ -347,7 +347,7 @@ APREQ_DECLARE_HOOK(apreq_hook_find_param)
     apr_status_t s = (hook->next == NULL)
         ? APR_SUCCESS : apreq_hook_run(hook->next, param, bb);
 
-    if (is_final && s == APR_SUCCESS
+    if (is_final && s == APR_SUCCESS && ctx->param == NULL
         && strcasecmp(ctx->name, param->v.name) == 0) {
         ctx->param = param;
         ctx->prev->next = hook->next;