r26654: libcli/smb_composite: Rather than specifying each of the gazillion options...
[jelmer/samba4-debian.git] / source / torture / basic / misc.c
index 0832556b53e7118704fdead5ac85deaa38d28dba..d991f117cdc8f9a733fcb92e33060fa4c8f8be26 100644 (file)
@@ -821,8 +821,10 @@ static struct composite_context *torture_connect_async(
        smb->in.credentials=cmdline_credentials;
        smb->in.fallback_to_anonymous=false;
        smb->in.workgroup=workgroup;
+       lp_smbcli_options(tctx->lp_ctx, &smb->in.options);
        
-       return smb_composite_connect_send(smb,mem_ctx,ev);
+       return smb_composite_connect_send(smb,mem_ctx,
+                                         lp_resolve_context(tctx->lp_ctx),ev);
 }
 
 bool run_benchrw(struct torture_context *tctx)