diff options
author | Jeremy Allison <jra@samba.org> | 2002-06-20 19:08:05 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-06-20 19:08:05 +0000 |
commit | 086d8a98e33e197d171edf76468c829ae977cf65 (patch) | |
tree | df000c73d9c94f9dc07b7fba4fe49a5baf15952f /source3/nsswitch | |
parent | 5e068f081d2b8dbf510d11cb49548f7ddc0b3f74 (diff) | |
download | samba-086d8a98e33e197d171edf76468c829ae977cf65.tar.gz samba-086d8a98e33e197d171edf76468c829ae977cf65.tar.bz2 samba-086d8a98e33e197d171edf76468c829ae977cf65.zip |
Fix from Andrew Esh for not checking return code.
Jeremy.
(This used to be commit 629cea2ff4f640cd60d9ecfa72acf2707b3f1ff4)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd_rpc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_rpc.c b/source3/nsswitch/winbindd_rpc.c index a4abc175bd..dbfe1deda7 100644 --- a/source3/nsswitch/winbindd_rpc.c +++ b/source3/nsswitch/winbindd_rpc.c @@ -299,6 +299,9 @@ static NTSTATUS query_user(struct winbindd_domain *domain, result = cli_samr_query_userinfo(hnd->cli, mem_ctx, &user_pol, 0x15, &ctr); + if (!NT_STATUS_IS_OK(result)) + goto done; + cli_samr_close(hnd->cli, mem_ctx, &user_pol); got_user_pol = False; |