Module: kamailio
Branch: master
Commit: 9a1547e8815e697351b0795bb3b4e308e5440a6d
URL:
https://github.com/kamailio/kamailio/commit/9a1547e8815e697351b0795bb3b4e30…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-11-16T16:32:14+01:00
core: check required parameters for execution of onsend_route
- alternative to GH #861
---
Modified: onsend.h
---
Diff:
https://github.com/kamailio/kamailio/commit/9a1547e8815e697351b0795bb3b4e30…
Patch:
https://github.com/kamailio/kamailio/commit/9a1547e8815e697351b0795bb3b4e30…
---
diff --git a/onsend.h b/onsend.h
index cba56f4..8360ff2 100644
--- a/onsend.h
+++ b/onsend.h
@@ -65,6 +65,10 @@ static inline int run_onsend(struct sip_msg* orig_msg, struct
dest_info* dst,
snd_flags_t rpl_snd_flags_bak;
sr_kemi_eng_t *keng = NULL;
+ if(orig_msg==NULL || dst==NULL || buf==NULL) {
+ LM_DBG("required parameters are not available - ignoring\n");
+ return 1;
+ }
ret=1;
if (onsend_rt.rlist[DEFAULT_RT]){
onsnd_info.to=&dst->to;