diff options
-rw-r--r-- | source3/lib/debug.c | 5 |
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); |