summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-06-22 20:33:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:18:56 -0500
commit491b9e637d60a3c86761c5dc348fbf0c2218f7ea (patch)
tree46f33806cf331e3f6d47e2f92cb61a6d9a008322
parent025b5463926670c5bf49da0baaff26e77bd9697e (diff)
downloadsamba-491b9e637d60a3c86761c5dc348fbf0c2218f7ea.tar.gz
samba-491b9e637d60a3c86761c5dc348fbf0c2218f7ea.tar.bz2
samba-491b9e637d60a3c86761c5dc348fbf0c2218f7ea.zip
r16475: destroy talloc ctx when we weren't able to collect onlinestatus
messages. Guenther (This used to be commit d6b52e818109e6eb5a3df1bbc127c333e819141d)
-rw-r--r--source3/nsswitch/winbindd_dual.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_dual.c b/source3/nsswitch/winbindd_dual.c
index 4b92d78d79..0cc35277b0 100644
--- a/source3/nsswitch/winbindd_dual.c
+++ b/source3/nsswitch/winbindd_dual.c
@@ -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);