summaryrefslogtreecommitdiff
path: root/source3/torture/locktest.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/torture/locktest.c')
-rw-r--r--source3/torture/locktest.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/torture/locktest.c b/source3/torture/locktest.c
index 4c62b8dafc..82eee773f2 100644
--- a/source3/torture/locktest.c
+++ b/source3/torture/locktest.c
@@ -139,8 +139,7 @@ struct cli_state *connect_one(char *share)
ip = ipzero;
/* have to open a new connection */
- if (!(c=cli_initialise(NULL)) || (cli_set_port(c, 139) == 0) ||
- !cli_connect(c, server_n, &ip)) {
+ if (!(c=cli_initialise(NULL)) || !cli_connect(c, server_n, &ip)) {
DEBUG(0,("Connection to %s failed\n", server_n));
return NULL;
}