Changeset 740 for vendor/current/source4/torture/raw/lockbench.c
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified vendor/current/source4/torture/raw/lockbench.c ¶
r414 r740 21 21 22 22 #include "includes.h" 23 #include "torture/torture.h"24 23 #include "libcli/raw/libcliraw.h" 25 24 #include "libcli/raw/raw_proto.h" … … 189 188 io->in.dest_host = state->dest_host; 190 189 io->in.dest_ports = state->dest_ports; 191 io->in.gensec_settings = lp _gensec_settings(state->mem_ctx, state->tctx->lp_ctx);192 io->in.socket_options = lp _socket_options(state->tctx->lp_ctx);190 io->in.gensec_settings = lpcfg_gensec_settings(state->mem_ctx, state->tctx->lp_ctx); 191 io->in.socket_options = lpcfg_socket_options(state->tctx->lp_ctx); 193 192 io->in.called_name = state->called_name; 194 193 io->in.service = share; … … 196 195 io->in.credentials = cmdline_credentials; 197 196 io->in.fallback_to_anonymous = false; 198 io->in.workgroup = lp_workgroup(state->tctx->lp_ctx); 199 io->in.iconv_convenience = lp_iconv_convenience(state->tctx->lp_ctx); 200 lp_smbcli_options(state->tctx->lp_ctx, &io->in.options); 201 lp_smbcli_session_options(state->tctx->lp_ctx, &io->in.session_options); 197 io->in.workgroup = lpcfg_workgroup(state->tctx->lp_ctx); 198 lpcfg_smbcli_options(state->tctx->lp_ctx, &io->in.options); 199 lpcfg_smbcli_session_options(state->tctx->lp_ctx, &io->in.session_options); 202 200 203 201 /* kill off the remnants of the old connection */ … … 206 204 207 205 ctx = smb_composite_connect_send(io, state->mem_ctx, 208 lp _resolve_context(state->tctx->lp_ctx),206 lpcfg_resolve_context(state->tctx->lp_ctx), 209 207 state->ev); 210 208 if (ctx == NULL) { … … 228 226 if (!NT_STATUS_IS_OK(status)) { 229 227 if (NT_STATUS_EQUAL(status, NT_STATUS_END_OF_FILE) || 230 NT_STATUS_EQUAL(status, NT_STATUS_LOCAL_DISCONNECT)) { 228 NT_STATUS_EQUAL(status, NT_STATUS_LOCAL_DISCONNECT) || 229 NT_STATUS_EQUAL(status, NT_STATUS_CONNECTION_RESET)) { 231 230 talloc_free(state->tree); 232 231 state->tree = NULL; … … 266 265 NTSTATUS status = smbcli_request_simple_recv(req); 267 266 if (NT_STATUS_EQUAL(status, NT_STATUS_END_OF_FILE) || 268 NT_STATUS_EQUAL(status, NT_STATUS_LOCAL_DISCONNECT)) { 267 NT_STATUS_EQUAL(status, NT_STATUS_LOCAL_DISCONNECT) || 268 NT_STATUS_EQUAL(status, NT_STATUS_CONNECTION_RESET)) { 269 269 talloc_free(state->tree); 270 270 state->tree = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.