summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-08-08 18:38:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:35 -0500
commitbe72e2de59b984bccd2e84e658bbbef379e6f13c (patch)
tree69ab15a6541b8ae932be6460514e751447678924 /source3
parent7ade7f947b37b8da2f4f29d0981a7e6128ca66f4 (diff)
downloadsamba-be72e2de59b984bccd2e84e658bbbef379e6f13c.tar.gz
samba-be72e2de59b984bccd2e84e658bbbef379e6f13c.tar.bz2
samba-be72e2de59b984bccd2e84e658bbbef379e6f13c.zip
r17462: Fix a cut&paste bug that caused us to return a null SID on some error conditions
(This used to be commit 954593bd41ff2475df5d37eae18be08ffa3002eb)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd_async.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_async.c b/source3/nsswitch/winbindd_async.c
index 4edf46dbee..75424db656 100644
--- a/source3/nsswitch/winbindd_async.c
+++ b/source3/nsswitch/winbindd_async.c
@@ -1595,6 +1595,12 @@ static void winbindd_gid2sid_recv(TALLOC_CTX *mem_ctx, BOOL success,
return;
}
+ if (response->result != WINBINDD_OK) {
+ DEBUG(5, ("gid2sid returned an error\n"));
+ cont(private_data, False, NULL);
+ return;
+ }
+
cont(private_data, True, response->data.sid.sid);
}