Module: kamailio
Branch: master
Commit: daac0bdb88f6f732bda7c683af45b90f87fdb7c9
URL:
https://github.com/kamailio/kamailio/commit/daac0bdb88f6f732bda7c683af45b90…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-03-01T12:41:13+01:00
core: ppcfg - jump to end when defexp eval does not get a str val
---
Modified: src/core/ppcfg.c
---
Diff:
https://github.com/kamailio/kamailio/commit/daac0bdb88f6f732bda7c683af45b90…
Patch:
https://github.com/kamailio/kamailio/commit/daac0bdb88f6f732bda7c683af45b90…
---
diff --git a/src/core/ppcfg.c b/src/core/ppcfg.c
index 262a7931cd2..d77a237882b 100644
--- a/src/core/ppcfg.c
+++ b/src/core/ppcfg.c
@@ -510,6 +510,8 @@ char *pp_defexp_eval(char *exval, int exlen, int qmode)
LM_DBG("expression string result: [%s]\n", result->param.stz.sval);
sval.s = result->param.stz.sval;
sval.len = strlen(result->param.stz.sval);
+ } else {
+ goto done;
}
if(qmode == 1) {