Module: kamailio Branch: master Commit: c927fb7b284b7c1da50d69738841afcbccd973d9 URL: https://github.com/kamailio/kamailio/commit/c927fb7b284b7c1da50d69738841afcb...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/c927fb7b284b7c1da50d69738841afcb... Patch: https://github.com/kamailio/kamailio/commit/c927fb7b284b7c1da50d69738841afcb...
---
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"); } }