summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-08-02 22:55:32 +0200
committerStefan Metzmacher <metze@samba.org>2011-08-03 09:01:40 +0200
commit2abe723e60bd6ab4e5f0fd41cb233cd1e9c1aa5e (patch)
treefbf477a1fd04ec91d2e160220144f7b609eb2e71
parent71cec7b37a221c42aeabe3b9c72878dd0714a60b (diff)
downloadsamba-2abe723e60bd6ab4e5f0fd41cb233cd1e9c1aa5e.tar.gz
samba-2abe723e60bd6ab4e5f0fd41cb233cd1e9c1aa5e.tar.bz2
samba-2abe723e60bd6ab4e5f0fd41cb233cd1e9c1aa5e.zip
s3:torture: make use of cli_set_timeout()
metze
-rw-r--r--source3/torture/torture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 03a0cdf9f8..d5c2a567aa 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -191,7 +191,7 @@ static struct cli_state *open_nbt_connection(void)
c->use_kerberos = use_kerberos;
- c->timeout = 120000; /* set a really long timeout (2 minutes) */
+ cli_set_timeout(c, 120000); /* set a really long timeout (2 minutes) */
if (use_oplocks) c->use_oplocks = True;
if (use_level_II_oplocks) c->use_level_II_oplocks = True;
@@ -374,7 +374,7 @@ static bool torture_open_connection_share(struct cli_state **c,
return False;
}
- (*c)->timeout = 120000; /* set a really long timeout (2 minutes) */
+ cli_set_timeout(*c, 120000); /* set a really long timeout (2 minutes) */
if (do_encrypt) {
return force_cli_encryption(*c,