Skip to content

Commit

Permalink
ratelimit: fix detection of replicating pipes
Browse files Browse the repository at this point in the history
in case the pipe does not contain '/' but contains 'r' or 'b', it would
be mistakenly detected as replicated.
Thanks go to Ken Rice from SipNav for reporting it.
  • Loading branch information
razvancrainea committed Aug 25, 2021
1 parent 845de6c commit 46aba56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/ratelimit/ratelimit_helper.c
Expand Up @@ -392,6 +392,8 @@ static inline void parse_pipe_name(str *name, str *pipe_name, unsigned *flags)
}
/* fall back */
default:
if (pipe_name->len == name->len)
*flags = 0;
/* not flags - something else at the end */
return;
}
Expand Down

0 comments on commit 46aba56

Please sign in to comment.