Remove unused include param/param.h.
[sfrench/samba-autobuild/.git] / source4 / libcli / smb_composite / fetchfile.c
index f3934a212321237a42af6e1035a1c2ea229fbb06..cbe2289a55f05ad9acd82df63030568423e7a6f2 100644 (file)
@@ -23,7 +23,6 @@
 #include "includes.h"
 #include "libcli/composite/composite.h"
 #include "libcli/smb_composite/smb_composite.h"
-#include "param/param.h"
 #include "libcli/resolve/resolve.h"
 
 enum fetchfile_stage {FETCHFILE_CONNECT,
@@ -62,7 +61,6 @@ static NTSTATUS fetchfile_connect(struct composite_context *c,
        state->creq->async.fn = fetchfile_composite_handler;
 
        state->stage = FETCHFILE_READ;
-       c->event_ctx = talloc_reference(c, state->creq->event_ctx);
 
        return NT_STATUS_OK;
 }
@@ -146,9 +144,13 @@ struct composite_context *smb_composite_fetchfile_send(struct smb_composite_fetc
        state->connect->in.credentials  = io->in.credentials;
        state->connect->in.fallback_to_anonymous = false;
        state->connect->in.workgroup    = io->in.workgroup;
+       state->connect->in.iconv_convenience = io->in.iconv_convenience;
+
+       state->connect->in.options      = io->in.options;
+       state->connect->in.session_options = io->in.session_options;
 
        state->creq = smb_composite_connect_send(state->connect, state, 
-                                                lp_resolve_context(global_loadparm), event_ctx);
+                                                io->in.resolve_ctx, event_ctx);
        if (state->creq == NULL) goto failed;
 
        state->creq->async.private_data = c;
@@ -156,7 +158,6 @@ struct composite_context *smb_composite_fetchfile_send(struct smb_composite_fetc
 
        c->state = COMPOSITE_STATE_IN_PROGRESS;
        state->stage = FETCHFILE_CONNECT;
-       c->event_ctx = talloc_reference(c, state->creq->event_ctx);
        c->private_data = state;
 
        return c;