Module: kamailio Branch: master Commit: 6c129bdc87352d0d883cc46fce0b78444e619084 URL: https://github.com/kamailio/kamailio/commit/6c129bdc87352d0d883cc46fce0b7844...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2023-12-31T09:22:28+01:00
ratelimit: removed unnecessary condition
---
Modified: src/modules/ratelimit/ratelimit.c
---
Diff: https://github.com/kamailio/kamailio/commit/6c129bdc87352d0d883cc46fce0b7844... Patch: https://github.com/kamailio/kamailio/commit/6c129bdc87352d0d883cc46fce0b7844...
---
diff --git a/src/modules/ratelimit/ratelimit.c b/src/modules/ratelimit/ratelimit.c index d993bbd6e98..4e327460044 100644 --- a/src/modules/ratelimit/ratelimit.c +++ b/src/modules/ratelimit/ratelimit.c @@ -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;