mirror of
https://github.com/samba-team/samba.git
synced 2025-11-28 12:23:49 +03:00
Robustness fix for libnet join when unjoining.
Guenther
This commit is contained in:
@@ -319,10 +319,11 @@ static NTSTATUS do_DomainUnjoin(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
|
||||
done:
|
||||
rpccli_samr_close(pipe_hnd, mem_ctx, &domain_pol);
|
||||
rpccli_samr_close(pipe_hnd, mem_ctx, &sam_pol);
|
||||
|
||||
cli_rpc_pipe_close(pipe_hnd);
|
||||
if (pipe_hnd) {
|
||||
rpccli_samr_close(pipe_hnd, mem_ctx, &domain_pol);
|
||||
rpccli_samr_close(pipe_hnd, mem_ctx, &sam_pol);
|
||||
cli_rpc_pipe_close(pipe_hnd);
|
||||
}
|
||||
|
||||
if (cli) {
|
||||
cli_shutdown(cli);
|
||||
|
||||
Reference in New Issue
Block a user