From be72e2de59b984bccd2e84e658bbbef379e6f13c Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 8 Aug 2006 18:38:33 +0000 Subject: r17462: Fix a cut&paste bug that caused us to return a null SID on some error conditions (This used to be commit 954593bd41ff2475df5d37eae18be08ffa3002eb) --- source3/nsswitch/winbindd_async.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3') 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); } -- cgit