summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-03-13 17:49:24 -0700
committerJeremy Allison <jra@samba.org>2009-03-13 17:49:24 -0700
commitf48a345e4a215173ad9e7d2777bacc0decb2bcc7 (patch)
tree411aabcb24f39c0e9c908cac0aef264920564810 /source3/torture
parent5df46fa35bd7c7aa083d4db1331b6f056ef70c77 (diff)
downloadsamba-f48a345e4a215173ad9e7d2777bacc0decb2bcc7.tar.gz
samba-f48a345e4a215173ad9e7d2777bacc0decb2bcc7.tar.bz2
samba-f48a345e4a215173ad9e7d2777bacc0decb2bcc7.zip
Remove pwd_cache.c, it was doing nothing. Make user_name, domain, and
password talloc'ed strings within the cli_struct. Jeremy.
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 64dfb5224c..e2d1497b28 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -333,6 +333,7 @@ bool torture_cli_session_setup2(struct cli_state *cli, uint16 *new_vuid)
uint16 old_vuid = cli->vuid;
fstring old_user_name;
size_t passlen = strlen(password);
+ NTSTATUS status;
bool ret;
fstrcpy(old_user_name, cli->user_name);
@@ -343,7 +344,10 @@ bool torture_cli_session_setup2(struct cli_state *cli, uint16 *new_vuid)
workgroup));
*new_vuid = cli->vuid;
cli->vuid = old_vuid;
- fstrcpy(cli->user_name, old_user_name);
+ status = cli_set_username(cli, old_user_name);
+ if (!NT_STATUS_IS_OK(status)) {
+ return false;
+ }
return ret;
}