Module: kamailio
Branch: master
Commit: 25a060bb5d72cac5bafcd4e8e5960635bf848205
URL:
https://github.com/kamailio/kamailio/commit/25a060bb5d72cac5bafcd4e8e596063…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/25a060bb5d72cac5bafcd4e8e596063…
Patch:
https://github.com/kamailio/kamailio/commit/25a060bb5d72cac5bafcd4e8e596063…
---
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);