diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-02-12 12:23:28 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2014-02-13 11:54:16 +0100 |
commit | 549001fb736559355f2caa2f4201097e2cd3fcde (patch) | |
tree | c7180189ac3f14368d1d9283b5baca245c64c5ec /source4/libnet | |
parent | 776f5c65bf6123d4f6909724436c48fe900866f0 (diff) | |
download | samba-549001fb736559355f2caa2f4201097e2cd3fcde.tar.gz |
s4:libnet: add const to libnet_JoinDomain->out.samr_binding
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/libnet_join.c | 1 | ||||
-rw-r--r-- | source4/libnet/libnet_join.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/source4/libnet/libnet_join.c b/source4/libnet/libnet_join.c index f9578407de3..9eb0e6585d6 100644 --- a/source4/libnet/libnet_join.c +++ b/source4/libnet/libnet_join.c @@ -911,7 +911,6 @@ NTSTATUS libnet_JoinDomain(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru r->out.samr_pipe = samr_pipe; talloc_reparent(tmp_ctx, mem_ctx, samr_pipe); r->out.samr_binding = samr_pipe->binding; - talloc_steal(mem_ctx, r->out.samr_binding); r->out.user_handle = u_handle; talloc_steal(mem_ctx, u_handle); r->out.error_string = r2.samr_handle.out.error_string; diff --git a/source4/libnet/libnet_join.h b/source4/libnet/libnet_join.h index 89f4d291c7f..c8a4a40e9b4 100644 --- a/source4/libnet/libnet_join.h +++ b/source4/libnet/libnet_join.h @@ -57,7 +57,7 @@ struct libnet_JoinDomain { const char *server_dn_str; uint32_t kvno; /* msDS-KeyVersionNumber */ struct dcerpc_pipe *samr_pipe; - struct dcerpc_binding *samr_binding; + const struct dcerpc_binding *samr_binding; struct policy_handle *user_handle; struct dom_sid *account_sid; struct GUID account_guid; |