From 39a965ac83ed8c6ad48c77519b47f6ca544ec713 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 25 Sep 2013 06:21:38 +0200 Subject: s4:torture:spoolss: use smb2_connect() instead of smb2_connet_ext() in print_test_smbd: we don't need to pass the previous_session_id. Signed-off-by: Michael Adam Reviewed-by: Jeremy Allison Reviewed-by: Stefan Metzmacher --- source4/torture/rpc/spoolss.c | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'source4') diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 4c84bc0d13..f2a44c9c46 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -8173,18 +8173,17 @@ static bool test_print_test_smbd(struct torture_context *tctx, torture_comment(tctx, "Testing smbd job spooling\n"); lpcfg_smbcli_options(tctx->lp_ctx, &options); - status = smb2_connect_ext(mem_ctx, - torture_setting_string(tctx, "host", NULL), - lpcfg_smb_ports(tctx->lp_ctx), - share, - lpcfg_resolve_context(tctx->lp_ctx), - credentials, - 0, - &tree, - tctx->ev, - &options, - lpcfg_socket_options(tctx->lp_ctx), - lpcfg_gensec_settings(tctx, tctx->lp_ctx)); + status = smb2_connect(mem_ctx, + torture_setting_string(tctx, "host", NULL), + lpcfg_smb_ports(tctx->lp_ctx), + share, + lpcfg_resolve_context(tctx->lp_ctx), + credentials, + &tree, + tctx->ev, + &options, + lpcfg_socket_options(tctx->lp_ctx), + lpcfg_gensec_settings(tctx, tctx->lp_ctx)); if (!NT_STATUS_IS_OK(status)) { printf("Failed to connect to SMB2 printer %s - %s\n", share, nt_errstr(status)); -- cgit