Module: kamailio
Branch: master
Commit: daf74e8a7356014a0227352d8f7be44d4c4fd9d0
URL:
https://github.com/kamailio/kamailio/commit/daf74e8a7356014a0227352d8f7be44…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-03-25T17:17:00+01:00
sipdump: test initialization of faked msg structure
---
Modified: src/modules/sipdump/sipdump_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/daf74e8a7356014a0227352d8f7be44…
Patch:
https://github.com/kamailio/kamailio/commit/daf74e8a7356014a0227352d8f7be44…
---
diff --git a/src/modules/sipdump/sipdump_mod.c b/src/modules/sipdump/sipdump_mod.c
index d686dc897e..ad867ff0ce 100644
--- a/src/modules/sipdump/sipdump_mod.c
+++ b/src/modules/sipdump/sipdump_mod.c
@@ -137,7 +137,10 @@ static int mod_init(void)
if (sipdump_event_route_idx>=0 &&
event_rt.rlist[sipdump_event_route_idx]==0) {
sipdump_event_route_idx = -1; /* disable */
}
- faked_msg_init();
+ if(faked_msg_init() <0) {
+ LM_ERR("cannot initialize faked msg structure\n");
+ return -1;
+ }
}
if(sipdump_mode & SIPDUMP_MODE_WFILE) {