Author: joes
Date: Sat Jan 10 03:52:57 2009
New Revision: 733268
URL: http://svn.apache.org/viewvc?rev=733268&view=rev
Log:
only retrieve a param that successfully
runs its hooks
Modified:
httpd/apreq/trunk/library/parser.c
Modified: httpd/apreq/trunk/library/parser.c
URL:
http://svn.apache.org/viewvc/httpd/apreq/trunk/library/parser.c?rev=733268&r1=733267&r2=733268&view=diff
==============================================================================
--- httpd/apreq/trunk/library/parser.c (original)
+++ httpd/apreq/trunk/library/parser.c Sat Jan 10 03:52:57 2009
@@ -347,7 +347,8 @@
apr_status_t s = (hook->next == NULL)
? APR_SUCCESS : apreq_hook_run(hook->next, param, bb);
- if (is_final && strcasecmp(ctx->name, param->v.name) == 0) {
+ if (is_final && s == APR_SUCCESS
+ && strcasecmp(ctx->name, param->v.name) == 0) {
ctx->param = param;
ctx->prev[0]->next = hook->next;
}