svn commit: samba r16387 - in trunk/source/lib: .

jra at samba.org jra at samba.org
Tue Jun 20 01:12:42 GMT 2006


Author: jra
Date: 2006-06-20 01:12:40 +0000 (Tue, 20 Jun 2006)
New Revision: 16387

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16387

Log:
Klocwork #320. Null deref.
Jeremy.

Modified:
   trunk/source/lib/debug.c


Changeset:
Modified: trunk/source/lib/debug.c
===================================================================
--- trunk/source/lib/debug.c	2006-06-20 01:08:57 UTC (rev 16386)
+++ trunk/source/lib/debug.c	2006-06-20 01:12:40 UTC (rev 16387)
@@ -513,6 +513,11 @@
 {
 	char *message = debug_list_class_names_and_levels();
 
+	if (!message) {
+		DEBUG(0,("debuglevel_message - debug_list_class_names_and_levels returned NULL\n"));
+		return;
+	}
+
 	DEBUG(1,("INFO: Received REQ_DEBUGLEVEL message from PID %u\n",
 		 (unsigned int)procid_to_pid(&src)));
 	message_send_pid(src, MSG_DEBUGLEVEL, message, strlen(message) + 1, True);



More information about the samba-cvs mailing list