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

Daniel-Constantin Mierla miconda at gmail.com
Thu May 16 21:11:29 CEST 2019


Module: kamailio
Branch: 5.2
Commit: 256400382a9a4edac601c18cf2affe59b4dd93b4
URL: https://github.com/kamailio/kamailio/commit/256400382a9a4edac601c18cf2affe59b4dd93b4

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/256400382a9a4edac601c18cf2affe59b4dd93b4.diff
Patch: https://github.com/kamailio/kamailio/commit/256400382a9a4edac601c18cf2affe59b4dd93b4.patch

---

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)




More information about the sr-dev mailing list