summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/cli_np_tstream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/cli_np_tstream.c b/source3/libsmb/cli_np_tstream.c
index 7521181ec8..37fd68affd 100644
--- a/source3/libsmb/cli_np_tstream.c
+++ b/source3/libsmb/cli_np_tstream.c
@@ -194,7 +194,8 @@ NTSTATUS _tstream_cli_np_open_recv(struct tevent_req *req,
cli_nps->cli = state->cli;
cli_nps->npipe = talloc_move(cli_nps, &state->npipe);
cli_nps->fnum = state->fnum;
- cli_nps->default_timeout = state->cli->timeout;
+ cli_nps->default_timeout = cli_set_timeout(state->cli, 0);
+ cli_set_timeout(state->cli, cli_nps->default_timeout);
talloc_set_destructor(cli_nps, tstream_cli_np_destructor);