Module: kamailio
Branch: master
Commit: f717c142b0184b5785c9ff1b128868f7b7814136
URL:
https://github.com/kamailio/kamailio/commit/f717c142b0184b5785c9ff1b128868f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-01-10T13:46:58+01:00
app_python3s: use local var to avoid overlapping values when casting
---
Modified: src/modules/app_python3s/apy3s_kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f717c142b0184b5785c9ff1b128868f…
Patch:
https://github.com/kamailio/kamailio/commit/f717c142b0184b5785c9ff1b128868f…
---
diff --git a/src/modules/app_python3s/apy3s_kemi.c
b/src/modules/app_python3s/apy3s_kemi.c
index e00eadd810..7003a9f17b 100644
--- a/src/modules/app_python3s/apy3s_kemi.c
+++ b/src/modules/app_python3s/apy3s_kemi.c
@@ -423,7 +423,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;
}