Browse code

sipdump: test initialization of faked msg structure

Daniel-Constantin Mierla authored on 25/03/2020 16:16:35
Showing 1 changed files
... ...
@@ -137,7 +137,10 @@ static int mod_init(void)
137 137
 		if (sipdump_event_route_idx>=0 && event_rt.rlist[sipdump_event_route_idx]==0) {
138 138
 			sipdump_event_route_idx = -1; /* disable */
139 139
 		}
140
-		faked_msg_init();
140
+		if(faked_msg_init() <0) {
141
+			LM_ERR("cannot initialize faked msg structure\n");
142
+			return -1;
143
+		}
141 144
 	}
142 145
 
143 146
 	if(sipdump_mode & SIPDUMP_MODE_WFILE) {