[sr-dev] git:master:e648fd5e: core: return negative on error adding pre-processor substdef

Daniel-Constantin Mierla miconda at gmail.com
Tue May 14 17:02:15 CEST 2019


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-05-14T16:36:08+02:00

core: return negative on error adding pre-processor substdef

- expected by the checks when executing the functions

---

Modified: src/core/ppcfg.c

---

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

---

diff --git a/src/core/ppcfg.c b/src/core/ppcfg.c
index a06795f760..3b026f9978 100644
--- a/src/core/ppcfg.c
+++ b/src/core/ppcfg.c
@@ -164,7 +164,7 @@ int pp_substdef_add(char *data, int mode)
 	return 0;
 
 error:
-	return 1;
+	return -1;
 }
 
 int pp_subst_run(char **data)




More information about the sr-dev mailing list