Skip to content

Commit

Permalink
Bugfix: wrong logic checking seq of filtersets
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Kunze committed Oct 31, 2016
1 parent 7351cb4 commit ad4d6b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/noit_filters_rest.c
Expand Up @@ -255,7 +255,7 @@ rest_set_filter(mtev_http_rest_closure_t *restc,
}

if((newfilter = validate_filter_post(indoc, pats[1], &seq)) == NULL) goto error;
if(exists && (old_seq >= seq || seq == 0)) {
if(exists && (old_seq >= seq && seq != 0)) {
error_code = 403;
goto error;
}
Expand Down

0 comments on commit ad4d6b7

Please sign in to comment.