summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-20 01:12:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:18:51 -0500
commita39643f170d53f7de0ccbd5df79114a29c7ac27f (patch)
treefe95a5eb5b026dbc1d4b9f64f00496775a71db22 /source3/lib
parent6d5a7494df01ec7561d712d49c467c634b9666df (diff)
downloadsamba-a39643f170d53f7de0ccbd5df79114a29c7ac27f.tar.gz
samba-a39643f170d53f7de0ccbd5df79114a29c7ac27f.tar.bz2
samba-a39643f170d53f7de0ccbd5df79114a29c7ac27f.zip
r16388: Klocwork #320. Null deref.
Jeremy. (This used to be commit ceea8e21006bd6bae9e203a672f82e4d066bba28)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/debug.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/lib/debug.c b/source3/lib/debug.c
index b8c42686cd..2b6c42b8eb 100644
--- 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);