From 2abe723e60bd6ab4e5f0fd41cb233cd1e9c1aa5e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 2 Aug 2011 22:55:32 +0200 Subject: s3:torture: make use of cli_set_timeout() metze --- source3/torture/torture.c | 4 ++-- 1 file 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, -- cgit