1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-20 08:23:50 +03:00

r16388: Klocwork #320. Null deref.

Jeremy.
This commit is contained in:
Jeremy Allison
2006-06-20 01:12:44 +00:00
committed by Gerald (Jerry) Carter
parent d47ec4dc25
commit ceea8e2100

View File

@@ -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);