Skip to content

Commit c9cfcec

Browse files
tbonfortjbo-ads
authored andcommitted
[Backport branch-1-6] clear errors after failed dimension check when used in context of forwarding rules (#168)
(cherry picked from commit 1917e88)
1 parent 8f6bb22 commit c9cfcec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/service_wms.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,7 @@ void _mapcache_service_wms_parse_request(mapcache_context *ctx, mapcache_service
931931
const char *value = apr_table_get(params,match_param->name);
932932
if(!value || match_param->_get_entries_for_value(ctx,match_param,value,NULL,NULL,NULL)->nelts == 0) {
933933
/* the parameter was not supplied, or did not validate: we don't apply this rule */
934+
ctx->clear_errors(ctx);
934935
got_a_match = 0;
935936
break;
936937
}

0 commit comments

Comments
 (0)