diff options
Diffstat (limited to 'source4/torture/raw/openbench.c')
-rw-r--r-- | source4/torture/raw/openbench.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/torture/raw/openbench.c b/source4/torture/raw/openbench.c index ceb52cdfcf..881f487cb0 100644 --- a/source4/torture/raw/openbench.c +++ b/source4/torture/raw/openbench.c @@ -30,6 +30,7 @@ #include "lib/cmdline/popt_common.h" #include "libcli/composite/composite.h" #include "libcli/smb_composite/smb_composite.h" +#include "libcli/resolve/resolve.h" #include "param/param.h" #define BASEDIR "\\benchopen" @@ -136,7 +137,9 @@ static void reopen_connection(struct event_context *ev, struct timed_event *te, state->tree = NULL; state->fnum = -1; - ctx = smb_composite_connect_send(io, state->mem_ctx, state->ev); + ctx = smb_composite_connect_send(io, state->mem_ctx, + lp_resolve_context(state->tctx->lp_ctx), + state->ev); if (ctx == NULL) { DEBUG(0,("Failed to setup async reconnect\n")); exit(1); |