svn commit: samba r16388 - in branches/SAMBA_3_0/source/lib: .

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


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

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

Log:
Klocwork #320. Null deref.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/lib/debug.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/debug.c
===================================================================
--- branches/SAMBA_3_0/source/lib/debug.c	2006-06-20 01:12:40 UTC (rev 16387)
+++ branches/SAMBA_3_0/source/lib/debug.c	2006-06-20 01:12:44 UTC (rev 16388)
@@ -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