Remove use of global_loadparm for SMB2 client connections.
[samba.git] / source4 / librpc / rpc / dcerpc_connect.c
index 8d03f9cde32a33d988c178afc2f548dfde128a3f..59bcca0046b74493fbe312698ad7963d9ad66a21 100644 (file)
@@ -255,7 +255,8 @@ static struct composite_context *dcerpc_pipe_connect_ncacn_np_smb2_send(
                                     s->io.creds,
                                     c->event_ctx,
                                     &options,
-                                        lp_socket_options(lp_ctx)
+                                        lp_socket_options(lp_ctx),
+                                        lp_gensec_settings(mem_ctx, lp_ctx)
                                         );
        composite_continue(c, conn_req, continue_smb2_connect, c);
        return c;