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;