s3:cli_np_tstream: make use of cli_set_timeout()
authorStefan Metzmacher <metze@samba.org>
Tue, 2 Aug 2011 20:56:52 +0000 (22:56 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 3 Aug 2011 07:01:40 +0000 (09:01 +0200)
metze

source3/libsmb/cli_np_tstream.c

index 7521181ec803bfeb8a053f4cdf2b4192e84d96bb..37fd68affdd7a6839fff08826f0e40500e26f817 100644 (file)
@@ -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);