[sr-dev] git:master:c927fb7b: evrexec: safety check for kemi engine use

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 11 10:02:05 CET 2019


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-03-11T10:01:09+01:00

evrexec: safety check for kemi engine use

---

Modified: src/modules/evrexec/evrexec_mod.c

---

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

---

diff --git a/src/modules/evrexec/evrexec_mod.c b/src/modules/evrexec/evrexec_mod.c
index e8af781484..e84efb4525 100644
--- a/src/modules/evrexec/evrexec_mod.c
+++ b/src/modules/evrexec/evrexec_mod.c
@@ -381,7 +381,9 @@ void rpc_evr_run(rpc_t *rpc, void *c)
 					evr_name.len, evr_name.s);
 		}
 	} else {
-		if(sr_kemi_route(keng, fmsg, EVENT_ROUTE, &evr_name, &evr_data)<0) {
+		if(keng!=NULL
+				&& sr_kemi_route(keng, fmsg, EVENT_ROUTE, &evr_name,
+						&evr_data)<0) {
 			LM_ERR("error running event route kemi callback\n");
 		}
 	}




More information about the sr-dev mailing list