summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-08-02 22:56:52 +0200
committerStefan Metzmacher <metze@samba.org>2011-08-03 09:01:40 +0200
commit71c695d8d1ddcb4927daab4ad967f9fcfdff76c7 (patch)
treeb027272e7b8f6d0a869ffa00e33da18b31b57dc5
parent2abe723e60bd6ab4e5f0fd41cb233cd1e9c1aa5e (diff)
downloadsamba-71c695d8d1ddcb4927daab4ad967f9fcfdff76c7.tar.gz
samba-71c695d8d1ddcb4927daab4ad967f9fcfdff76c7.tar.bz2
samba-71c695d8d1ddcb4927daab4ad967f9fcfdff76c7.zip
s3:cli_np_tstream: make use of cli_set_timeout()
metze
-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);