git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100760
13f79535-47bb-0310-9956-
ffa450edef68
else {
old = (ap_filter_rec_t*) apr_hash_get(conf->ct_output_filters, arg2,
APR_HASH_KEY_STRING);
+ /* find last entry */
+ if (old) {
+ while (old->next) {
+ old = old->next;
+ }
+ }
}
while (*arg &&
/* We found something, so let's append it. */
if (old) {
- new->next = old;
+ old->next = new;
+ }
+ else {
+ apr_hash_set(conf->ct_output_filters, arg2,
+ APR_HASH_KEY_STRING, new);
}
old = new;
}
return "invalid filter name";
}
- apr_hash_set(conf->ct_output_filters, arg2, APR_HASH_KEY_STRING, new);
-
return NULL;
}
/*