Module: kamailio
Branch: master
Commit: 9142d58906eb9327a24290737b833d79dc2d605c
URL:
https://github.com/kamailio/kamailio/commit/9142d58906eb9327a24290737b833d7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-01-10T13:46:48+01:00
app_python3: use local var to avoid overlapping values when casting
---
Modified: src/modules/app_python3/apy_kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/9142d58906eb9327a24290737b833d7…
Patch:
https://github.com/kamailio/kamailio/commit/9142d58906eb9327a24290737b833d7…
---
diff --git a/src/modules/app_python3/apy_kemi.c b/src/modules/app_python3/apy_kemi.c
index 71bc849e118..1fe02c5bac8 100644
--- a/src/modules/app_python3/apy_kemi.c
+++ b/src/modules/app_python3/apy_kemi.c
@@ -312,7 +312,8 @@ PyObject *sr_apy_kemi_exec_func_ex(sr_kemi_t *ket, PyObject *self,
PyObject *arg
}
if(ket->ptypes[i]==SR_KEMIP_INT) {
vps[i].vtype = SR_KEMIP_INT;
- vps[i].v.n = (int)vps[i].v.l;
+ ret = (int)vps[i].v.l;
+ vps[i].v.n = ret;
} else {
vps[i].vtype = SR_KEMIP_LONG;
}