Pass session options around; saves another use of global_loadparm.
[amitay/samba.git] / source4 / torture / raw / openbench.c
index 26b862c33f1d1255387ab0fae2e27049e6dcee75..ec94637445a3b0f73a3488342ff4be7b0c1237ce 100644 (file)
@@ -137,6 +137,7 @@ static void reopen_connection(struct event_context *ev, struct timed_event *te,
        io->in.fallback_to_anonymous = false;
        io->in.workgroup    = lp_workgroup(state->tctx->lp_ctx);
        lp_smbcli_options(state->tctx->lp_ctx, &io->in.options);
+       lp_smbcli_session_options(state->tctx->lp_ctx, &io->in.session_options);
 
        /* kill off the remnants of the old connection */
        talloc_free(state->tree);