Skip to content

Commit

Permalink
ratelimit: removed unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Dec 31, 2023
1 parent a268f07 commit 6c129bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ratelimit/ratelimit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ static void rpc_set_queue(rpc_t *rpc, void *c)
if(rpc->scan(c, "dSd", &queue_no, &method, &pipe_no) < 3)
return;

if(pipe_no >= MAX_PIPES || (int)pipe_no < 0) {
if(pipe_no >= MAX_PIPES) {
LM_ERR("Invalid pipe number: %d\n", pipe_no);
rpc->fault(c, 400, "Invalid pipe number");
return;
Expand Down

0 comments on commit 6c129bd

Please sign in to comment.