Module: kamailio Branch: 5.2 Commit: 256400382a9a4edac601c18cf2affe59b4dd93b4 URL: https://github.com/kamailio/kamailio/commit/256400382a9a4edac601c18cf2affe59...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2019-05-16T21:08:59+02:00
core: return negative on error adding pre-processor substdef
- expected by the checks when executing the functions
(cherry picked from commit e648fd5e10a6ec694129be5fab0a84c2c90aa916)
---
Modified: src/core/ppcfg.c
---
Diff: https://github.com/kamailio/kamailio/commit/256400382a9a4edac601c18cf2affe59... Patch: https://github.com/kamailio/kamailio/commit/256400382a9a4edac601c18cf2affe59...
---
diff --git a/src/core/ppcfg.c b/src/core/ppcfg.c index d15e0f899e..844247faa5 100644 --- a/src/core/ppcfg.c +++ b/src/core/ppcfg.c @@ -163,7 +163,7 @@ int pp_substdef_add(char *data, int mode) return 0;
error: - return 1; + return -1; }
int pp_subst_run(char **data)