s4:libnet: add const to libnet_JoinDomain->out.samr_binding
authorStefan Metzmacher <metze@samba.org>
Wed, 12 Feb 2014 11:23:28 +0000 (12:23 +0100)
committerG√ľnther Deschner <gd@samba.org>
Thu, 13 Feb 2014 10:54:16 +0000 (11:54 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source4/libnet/libnet_join.c
source4/libnet/libnet_join.h

index f9578407de30a486acd045fa72559fee6972ce5a..9eb0e6585d6d47c3589116b01e4dc2e74b57f143 100644 (file)
@@ -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;
index 89f4d291c7fc850c568df96fdae0dc6d065016b0..c8a4a40e9b49c38112682860fe0fa0aa0d5cd115 100644 (file)
@@ -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;