Browse code

Merge 843346d7b80675a68a4bbda35e136e1dc0101499 into edd118c1aeaac69cf1151ff6a2270ed30d801c69

bensly-shanmugam authored on 21/09/2022 06:54:30 • GitHub committed on 21/09/2022 06:54:30
Showing 1 changed files
... ...
@@ -82,6 +82,12 @@ static const char* rpc_mod_mem_statsx_doc[2] = {
82 82
 /* test if the current mod info was already printed */
83 83
 static int rpc_mod_is_printed_one(mem_counter *stats, mem_counter *current) {
84 84
 	mem_counter *iter = stats;
85
+	
86
+	if ( stats == NULL || current == NULL )
87
+	{
88
+		LM_ERR("rpc_mod_is_printed_one -> funtion parameter contains null value \n");
89
+		return 1;
90
+	}
85 91
 
86 92
 	while (iter && iter != current) {
87 93
 		if (strcmp(iter->mname, current->mname) == 0) {