summaryrefslogtreecommitdiffstats
path: root/source/torture/locktest.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/torture/locktest.c')
-rw-r--r--source/torture/locktest.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/torture/locktest.c b/source/torture/locktest.c
index 7a970488b37..8d3234e367f 100644
--- a/source/torture/locktest.c
+++ b/source/torture/locktest.c
@@ -165,6 +165,7 @@ static struct cli_state *connect_one(char *share, int snum)
struct in_addr ip;
fstring myname;
static int count;
+ NTSTATUS status;
fstrcpy(server,share+2);
share = strchr_m(server,'\\');
@@ -185,11 +186,17 @@ static struct cli_state *connect_one(char *share, int snum)
zero_ip(&ip);
/* have to open a new connection */
- if (!(c=cli_initialise()) || !cli_connect(c, server_n, &ip)) {
+ if (!(c=cli_initialise())) {
DEBUG(0,("Connection to %s failed\n", server_n));
return NULL;
}
+ status = cli_connect(c, server_n, &ip);
+ if (!NT_STATUS_IS_OK(status)) {
+ DEBUG(0,("Connection to %s failed. Error %s\n", server_n, nt_errstr(status) ));
+ return NULL;
+ }
+
c->use_kerberos = use_kerberos;
if (!cli_session_request(c, &calling, &called)) {