git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d5a749
)
r16388: Klocwork #320. Null deref.
author
Jeremy Allison
<jra@samba.org>
Tue, 20 Jun 2006 01:12:44 +0000
(
01:12
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:18:51 +0000
(11:18 -0500)
Jeremy.
(This used to be commit
ceea8e21006bd6bae9e203a672f82e4d066bba28
)
source3/lib/debug.c
patch
|
blob
|
history
diff --git
a/source3/lib/debug.c
b/source3/lib/debug.c
index b8c42686cdb0f5465e806a3099a093623553d11c..2b6c42b8eb04484c52d78df3fccbb684a31b608c 100644
(file)
--- a/
source3/lib/debug.c
+++ b/
source3/lib/debug.c
@@
-513,6
+513,11
@@
static void debuglevel_message(int msg_type, struct process_id src,
{
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);