1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

r16475: destroy talloc ctx when we weren't able to collect onlinestatus

messages.

Guenther
(This used to be commit d6b52e818109e6eb5a3df1bbc127c333e819141d)
This commit is contained in:
Günther Deschner 2006-06-22 20:33:42 +00:00 committed by Gerald (Jerry) Carter
parent 025b546392
commit 491b9e637d

View File

@ -649,6 +649,10 @@ static void child_msg_onlinestatus(int msg_type, struct process_id src, void *bu
}
message = collect_onlinestatus(mem_ctx);
if (message == NULL) {
talloc_destroy(mem_ctx);
return;
}
message_send_pid(*sender, MSG_WINBIND_ONLINESTATUS,
message, strlen(message) + 1, True);