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

source3/torture/torture.c

index 03a0cdf9f828baeaaebb21f4e5dc6465f91a772c..d5c2a567aa0ff0f945c5cd7267bfdecf628d109e 100644 (file)
@@ -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,