Module: kamailio
Branch: master
Commit: 2f43510be37c157f800389dfb432b6c52d7435a7
URL:
https://github.com/kamailio/kamailio/commit/2f43510be37c157f800389dfb432b6c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-12-18T12:31:34+01:00
pv: removed unnecessary condition
---
Modified: src/modules/pv/pv_trans.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2f43510be37c157f800389dfb432b6c…
Patch:
https://github.com/kamailio/kamailio/commit/2f43510be37c157f800389dfb432b6c…
---
diff --git a/src/modules/pv/pv_trans.c b/src/modules/pv/pv_trans.c
index 7eb50ee9a2b..84c3a0c703f 100644
--- a/src/modules/pv/pv_trans.c
+++ b/src/modules/pv/pv_trans.c
@@ -1439,7 +1439,7 @@ int tr_eval_string(
get_cfg_crt_line());
return -1;
}
- if(n == 0 || m >= val->rs.len) {
+ if(m >= val->rs.len) {
if(val->rs.len > TR_BUFFER_SIZE - 2) {
LM_ERR("value too large: %d\n", val->rs.len);
return -1;