Skip to content

Commit

Permalink
Merge pull request modcluster#279 from jajik/off-by-one
Browse files Browse the repository at this point in the history
Fix off by one error in Alias/Context length check
  • Loading branch information
jajik authored Sep 27, 2024
2 parents 6d264bd + 7770280 commit a27c692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/mod_manager/mod_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ static int check_context_alias_length(const char *str, int limit)
if (str[i] == ',') {
len = 0;
}
if (len > limit) {
if (len >= limit) {
return 1;
}
len++;
Expand Down

0 comments on commit a27c692

Please sign in to comment.