Pre-Submission Checklist

Type Of Change

Checklist:

Description

We have found a random crash in the CTL module handler and we are using kamailio 5.4.7. Based on the core log analysis, we have identified that, due to some of the RPC events this crash happens.

This crash happen when "rpc_mod_is_printed_one" funtion recevies the parameter ( mem_counter *stats ) as NULL. To avoid the crash, we have added the below code. 

if ( stats == NULL || current == NULL )
{
	LM_ERR("rpc_mod_is_printed_one -> funtion parameter contains null value \n");
	return 1;
}

You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/3250

Commit Summary

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/3250@github.com>