[sr-dev] git:master:5d5b9786: app_python3: fixed condition for function with siis params

Daniel-Constantin Mierla miconda at gmail.com
Fri May 3 09:06:59 CEST 2019


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-05-03T08:48:32+02:00

app_python3: fixed condition for function with siis params

- GH #1944

---

Modified: src/modules/app_python3/apy_kemi.c

---

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

---

diff --git a/src/modules/app_python3/apy_kemi.c b/src/modules/app_python3/apy_kemi.c
index 18f9dd6aa6..380821389a 100755
--- a/src/modules/app_python3/apy_kemi.c
+++ b/src/modules/app_python3/apy_kemi.c
@@ -416,10 +416,10 @@ PyObject *sr_apy_kemi_exec_func_ex(sr_kemi_t *ket, PyObject *self, PyObject *arg
 				vps[1].s.len, vps[1].s.s, vps[2].s.len, vps[2].s.s,
 				vps[3].s.len, vps[3].s.s, vps[4].s.len, vps[4].s.s);
 		} else if(ket->ptypes[0]==SR_KEMIP_STR
-				|| ket->ptypes[1]==SR_KEMIP_STR
-				|| ket->ptypes[2]==SR_KEMIP_INT
-				|| ket->ptypes[3]==SR_KEMIP_INT
-				|| ket->ptypes[4]==SR_KEMIP_STR) {
+				&& ket->ptypes[1]==SR_KEMIP_STR
+				&& ket->ptypes[2]==SR_KEMIP_INT
+				&& ket->ptypes[3]==SR_KEMIP_INT
+				&& ket->ptypes[4]==SR_KEMIP_STR) {
 			if(!PyArg_ParseTuple(args, "ssiis:kemi-param-ssnns",
 						&vps[0].s.s, &vps[1].s.s, &vps[2].n, &vps[3].n,
 						&vps[4].s.s)) {




More information about the sr-dev mailing list