summaryrefslogtreecommitdiff
path: root/source4/winbind/wb_cmd_usersids.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-04-30 16:52:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:51:52 -0500
commitf5a94f978b9221bbf79e3d0d3fe8ad5d735509a1 (patch)
tree15aec7052e1f244d0030519e77f1d9c5250ba291 /source4/winbind/wb_cmd_usersids.c
parent2c65bbc984f7084680798c321338d98ad9d336c2 (diff)
downloadsamba-f5a94f978b9221bbf79e3d0d3fe8ad5d735509a1.tar.gz
samba-f5a94f978b9221bbf79e3d0d3fe8ad5d735509a1.tar.bz2
samba-f5a94f978b9221bbf79e3d0d3fe8ad5d735509a1.zip
r22612: Fix more cases where we have uninitialised values in the
composite_context, because we don't use the creation function. Andrew Bartlett (This used to be commit e37064e356c17d0c87bb7fa7adf0c0d04d8daba2)
Diffstat (limited to 'source4/winbind/wb_cmd_usersids.c')
-rw-r--r--source4/winbind/wb_cmd_usersids.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/winbind/wb_cmd_usersids.c b/source4/winbind/wb_cmd_usersids.c
index 1aebeae913..aa8a9ea9c0 100644
--- a/source4/winbind/wb_cmd_usersids.c
+++ b/source4/winbind/wb_cmd_usersids.c
@@ -57,11 +57,9 @@ struct composite_context *wb_cmd_usersids_send(TALLOC_CTX *mem_ctx,
struct composite_context *result, *ctx;
struct cmd_usersids_state *state;
- result = talloc(mem_ctx, struct composite_context);
+
+ result = composite_create(mem_ctx, service->task->event_ctx);
if (result == NULL) goto failed;
- result->state = COMPOSITE_STATE_IN_PROGRESS;
- result->async.fn = NULL;
- result->event_ctx = service->task->event_ctx;
state = talloc(result, struct cmd_usersids_state);
if (state == NULL) goto failed;