[sr-dev] git:master:25a060bb: core: snexpr - assign the lv to evaluated variable with number value

Daniel-Constantin Mierla miconda at gmail.com
Fri Oct 7 13:51:14 CEST 2022


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-10-07T13:50:42+02:00

core: snexpr - assign the lv to evaluated variable with number value

---

Modified: src/core/utils/snexpr.h

---

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

---

diff --git a/src/core/utils/snexpr.h b/src/core/utils/snexpr.h
index df409f8381..4fb6e3f3b7 100644
--- a/src/core/utils/snexpr.h
+++ b/src/core/utils/snexpr.h
@@ -781,7 +781,7 @@ static struct snexpr *snexpr_eval(struct snexpr *e)
 				if(e->param.var.vref->evflags & SNEXPR_TSTRING) {
 					lv = snexpr_convert_stz(e->param.var.vref->v.sval, SNE_OP_CONSTSTZ);
 				} else {
-					snexpr_convert_num(e->param.var.vref->v.nval, SNE_OP_CONSTNUM);
+					lv = snexpr_convert_num(e->param.var.vref->v.nval, SNE_OP_CONSTNUM);
 				}
 			} else {
 				lv = _snexternval_cbf(e->param.var.vref->name);




More information about the sr-dev mailing list