summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/gentest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c
index f3c4c20e53..9e985ed681 100644
--- a/source4/torture/gentest.c
+++ b/source4/torture/gentest.c
@@ -221,7 +221,8 @@ static bool connect_servers(struct tevent_context *ev,
printf("Connecting to \\\\%s\\%s as %s - instance %d\n",
servers[i].server_name, servers[i].share_name,
- servers[i].credentials->username, j);
+ cli_credentials_get_username(servers[i].credentials),
+ j);
cli_credentials_set_workstation(servers[i].credentials,
"gentest", CRED_SPECIFIED);