diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-10-14 21:05:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:44:44 -0500 |
commit | 207a6bf3976d516e40c1ffa7312243e6ff92c791 (patch) | |
tree | 4a0aa1a1d76a046a3f39a878c0d4dd3837b0897a /source4/winbind/wb_async_helpers.c | |
parent | 8a58b806e90b177107cb6a21ab43a88ff8516ec8 (diff) | |
download | samba-207a6bf3976d516e40c1ffa7312243e6ff92c791.tar.gz samba-207a6bf3976d516e40c1ffa7312243e6ff92c791.tar.bz2 samba-207a6bf3976d516e40c1ffa7312243e6ff92c791.zip |
r11068: Fix pam_auth_crap, remove the sync code. I don't know what it was when I
tested it, but I can not reproduce the problem I had with abartlett's initial
implementation anymore.
Fix a bug found using valgrind.
Volker
(This used to be commit 0c6c71ae3cd0a2f97eab2cc24a752976c32a39fc)
Diffstat (limited to 'source4/winbind/wb_async_helpers.c')
-rw-r--r-- | source4/winbind/wb_async_helpers.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/winbind/wb_async_helpers.c b/source4/winbind/wb_async_helpers.c index d7cbd702ea..4850ec0d57 100644 --- a/source4/winbind/wb_async_helpers.c +++ b/source4/winbind/wb_async_helpers.c @@ -533,7 +533,7 @@ struct composite_context *wb_cmd_lookupname_send(struct wbsrv_call *call, if (state->domain->initialized) { ctx = wb_lsa_lookupnames_send(state->domain->lsa_pipe, state->domain->lsa_policy, - 1, &name); + 1, &state->name); if (ctx == NULL) goto failed; ctx->async.fn = cmd_lookupname_recv_sid; ctx->async.private_data = state; @@ -576,10 +576,8 @@ static void cmd_lookupname_recv_sid(struct composite_context *ctx) struct wb_sid_object **sids; state->ctx->status = wb_lsa_lookupnames_recv(ctx, state, &sids); - state->result = sids[0]; - if (!composite_is_ok(state->ctx)) return; - + state->result = sids[0]; composite_done(state->ctx); } |