1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

Robustness fix for libnet join when unjoining.

Guenther
(This used to be commit d7f01d940feb7dfedb6c4b8b88f5443434e03428)
This commit is contained in:
Günther Deschner 2008-01-04 11:21:53 +01:00
parent b076a7e802
commit 8dc1bf89a7

View File

@ -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);