Module: kamailio
Branch: master
Commit: e9c519ad4d49b8c74069577edb84ce02a5e63ee0
URL: 
https://github.com/kamailio/kamailio/commit/e9c519ad4d49b8c74069577edb84ce02a5e63ee0

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-04-18T10:21:00+02:00

textops: simplify return code when removing via param

---

Modified: src/modules/textops/textops.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/e9c519ad4d49b8c74069577edb84ce02a5e63ee0.diff
Patch: 
https://github.com/kamailio/kamailio/commit/e9c519ad4d49b8c74069577edb84ce02a5e63ee0.patch

---

diff --git a/src/modules/textops/textops.c b/src/modules/textops/textops.c
index db1929e0127..aee46a301a6 100644
--- a/src/modules/textops/textops.c
+++ b/src/modules/textops/textops.c
@@ -5037,7 +5037,7 @@ static int ki_via_param_rm(sip_msg_t *msg, str *name, int 
idx)
                        }
                }
        }
-       return (ret == 0) ? -1 : ret;
+       return -1;
 }
 
 /**

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to